What is the need to declare main() method as static in Java?
Answer Posted / shadab alam
static keyword specifies that there is no need of instance
to call static method and it's information is contained by
JVM that calls the static method.That's why we declare main
method as static so that it can be called automaticlly.
Is This Answer Correct ? | 58 Yes | 11 No |
Post New Answer View All Answers
What is an interceptor in java?
Which version of my browser should I use? : java security
What if I write static public void instead of public static void?
Are the actual permissions for the application defined at run-time or compile-time? : java security
What is proxy object in java?
What do I need to install netbeans?
How do I enable javascript?
If you’re overriding the method equals() of an object, which other method you might also consider?
What is a controller in java?
What is stateless class in java?
Why is javac not recognized?
Explain suspend() method under thread class>
How do I install jdk?
What is ehcache in java?
What is cmp in java?