Answer Posted / amit
look guys,we use main() method inside java cause whenever we
compile .java file then jvm call classname.main() first
without make any object.main method must be public and static
cause public for wide accessing and jvm call main() without
creating any object its only possible when main() is static
method.and all the argument taken by main in form of string
thats why we write as.......
public static void main(String args[])
it canbe
public final static void main(String args[])
Is This Answer Correct ? | 24 Yes | 0 No |
Post New Answer View All Answers
What are the different algorithms used for clustering?
Is infobus easy to use?
Can you control when passivation occurs?
Difference between swing and awt?
Why won’t the jvm terminate when I close all the application windows?
Can constructors be synchronized in java?
In inglish: How to convert jar to exe files? Em português: Como converter arquivos .jar para .exe?
What are the different class loaders used by jvm?
Explain the different types of memory used by jvm?
Define prototype?
What is a class loader?
What do you mean by Socket Programming?
How would you detect a keypress in a jcombobox?
If your ui seems to freeze periodically, what might be a likely reason?
What class is the top of the awt event hierarchy?