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
Can optional be null?
How can c# app request minimum permissions? : java security
What is the difference between a jdk and a jvm?
What's the difference between code-based security and role-based security? Which one is better? : java security
What are java’s rules regarding tabs, spaces and newline characters?
What is setstring method in java?
when i send the request to the JSP page it will print as it is and why? and how to solve this problem please inform me that solution
What do you understand by numeric promotion?
How does jpa repository work?
What is the use of entity class in java?
What is java web application?
What is the purpose of jdk?
What is ehcache in java?
Is it better to learn java or python?
Is lambda cheaper than ec2?