Programming - First Step towards Java Programming - Discussion

You Are Here :: Home > JAVA > First Step towards Java Programming - Discussion

 



Q.

what happens if string args[ ] is not written in main()?                         


A. only code will compile B. JVM cannot run the code
C. code will compile but JVM cannot tun the code D. JVM run the code

Answer: Option C
Explaination:

 


If string args[ ] is not written in main() code will compile but JVM cannot run the method.




Discussion

Your Comments Goes here...
NameDiscussion