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 stateless object in java?
What is cloning in java?
What if I write static public void instead of public static void?
What is cdi in java?
What does jpa mean?
What is a yaml file in java?
What is difference between map and flatmap in java 8?
In system.out.println(), what is system, out and println?
When do we go for java 8 stream api? Why do we need to use java 8 stream api in our projects?
What is lambda used for?
What is maven in java?
What is java api?
What is @override annotation in java?
What is interceptor in java?
What is web container in java?