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
Java prints out a ton of digits when I system.out.println() a double. How can I format it so it displays only 3 digits after the decimal place?
What is an entity in java?
What if I write static public void instead of public static void?
What is mime in java?
What is javax annotation generated?
What is meant by java se?
What is aop in java?
What is interceptor in java?
What is an interceptor in java?
Can we install jre without jdk?
What is web xml java?
Why do we need new date and time api in java se 8?
What is the difference between lambda expression and anonymous methods?
What is meant by annotations in java?
What is property file in java?