| What will be the output of the following Java code snippet slot 2 question 5?
Choose the correct option from below list
(1)The snippet compiles and runs but does not print anything
(2)The snippet compiles, runs and prints 0
(3)The snippet compiles, runs and prints 1
(4)The snippet does not compile
Answer:-(1)The snippet compiles and runs but does not print anything
Note:-As no argument is passed to the code, the length of args is 0. So the code will not print. | | |