Why do we use public static with the main function in Java?
Answer Posted / ravikiran(aptech mumbai)
public means we are allowing the main method to be accessed
any where in the application.and is declared static because
jvm will look for the static one's once it completes the
loading the class.
| Is This Answer Correct ? | 11 Yes | 5 No |
Post New Answer View All Answers
What is the SimpleTimeZone class?
What is difference between static and abstract class?
How many bytes is string in java?
What is a class component?
What is keyword and identifier?
Can a source file contain more than one class declaration?
What is meant by class and object in java?
Does unicode support all languages?
How do you create a method in java?
What is the collections api in java programming?
What are operators and its types?
How to split a string in java?
Can a method be static?
Realized?
What is lambda programming?