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 memory considerations of jsp compares to other web components?
What is the form of storage space in java?
wahts is mean by dynavalidatorform in struts/
What is the purpose of the wait(), notify(), and notifyall() methods?
Do we need to override service() method
what are RemoteObjects?
Explain the different types of memory used by jvm?
What restrictions are placed on the values of each case of a switch statement?
What is the difference between session and entity beans?
What is the purpose of the notify() method?
Define aop(assepct oriented programing)?
Where we can write Rmi registry in the code, without having to write it at the command prompt?
Explain how will the struts know which action class to call when you submit a form?
what are the advantages of JTA over JTS?
How are the elements of a borderlayout organized?