What is the need to declare main() method as static in Java?
Answer Posted / s. devanand
In Java, we call any method and variable without creating an
object of the class. Hence we declare main method as static
without creating an object we call the main method.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is savepoint in java?
Explain working of java virtual machine (jvm)?
What's the difference between code-based security and role-based security? Which one is better? : java security
Which method is used to create the daemon thread?
Define network programming?
How do I enable java in google chrome?
What is the difference between a while statement and a do statement?
Are streams faster than for loops?
Explain suspend() method under thread class>
What is dialect in java?
What is type inference? Is type inference available in older versions like java 7 and before 7 or it is available only in java se 8?
what are the different phases in delivering the project during development and maintenance?
how can we create the ui using netbeans,having the code?
What is a cookie in java?
Explain different way of using thread?