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
Do we need to override service() method
Will the general public have access to the infobus apis?
how do you Handle Front End Application data against DB with example?
Why is actionform a base class rather than an interface?
Where can I ask questions and make suggestions about seam?
What modifiers may be used with an interface declaration?
Brief description about local interfaces?
Which characters may be used as the second character of an identifier, but not as the first character of an identifier?
What restrictions are placed on the values of each case of a switch statement?
What is a tasks priority and how is it used in scheduling?
To what value is a variable of the string type automatically initialized?
How task's priority is used in scheduling?
What is re-entrant. Is session beans reentrant. Is entity beans reentrant?
Whats new with the stop(), suspend() and resume() methods in jdk 1.2?
What are the pros and cons of detached objects?