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
Which is more secure: java or activex? : java security
What is meant by code profiling?
What do you mean by exception handling?
Which is faster c++ or java?
What's the difference between authentication and authorization? : java security
What is jpa project?
How do I know if I have jre or jdk?
What is the difference between ec2 and lambda?
Explain main thread under thread class execution?
Is jdk a compiler?
What is dto in java?
What is use of jpa?
How common are security breaches? : java security
What is cookie in java?
What is mq in java?