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 does you mean in math?
What is the difference between the boolean & operator and the && operator in java programming?
What does ide stand for?
Write an algorithm for quick sort?
What is the purpose of the return statement?
How big is a gigabyte?
Can you inherit a constructor java?
What is a double vs float?
Can I extend singleton class in java?
What is the difference between reader/writer and inputstream/output stream?
Is a class an object?
I want to persist data of objects for later use. What is the best approach to do so?
Can we make main() thread as daemon?
What does serializing data mean?
What is the need of transient variables in Java ?