Need to use public,static keywords in main function?
Answer Posted / suresh
Main method is called by jvm...
jvm is out side the class
so main method must be pulic
then only jvm can access.
No instance of the class is needed to
execute the static method.
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are the concepts of 'OOPS'?
What is the difference between interface & abstract class?
Why local variables are stored in stack?
What are the different types of java?
What does next mean in java?
What is runtime locatable code?
How to make a write-only class in java?
What are features of java?
why we use merge option in hybernate pls give a ex snippet
What is difference between equal and == in java?
Can we make constructors static?
What is ‘is-a ‘ relationship in java?
What is an arraylist in java?
In multi-threading how can we ensure that a resource isn't used by multiple threads simultaneously?
What are access specifiers available in java?