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
How to implement an arraylist in java?
Is java free for businesses?
Can list be null in java?
How many types of keywords are there?
Give reasons supporting that string is immutable.
What is unicode datatype?
What is boolean flag in java?
Explain the scope or life time of class variables or static variables?
Describe the Big-O Notation.
What is difference between string and new string?
What is boolean strategy?
What is the abstraction?
Explain the private field modifier?
Can we use different return types for methods when overridden?
In Java list the methods that can be overridden?