What is the use of static keyword in "public static void
main()"
Answer Posted / rajesh
Execution starts from main method, but in this statement
importance of "static" is, it load in memory even before
first object is instantiated.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain java heap space and garbage collection?
What is the main functionality of the remote reference layer?
why doesn't java run on all platforms?
What do you mean by formatting?
Can I overload to string method
What is collection class in java? List down its methods and interfaces.
What are the steps involved to write rmi based programs?
What is the name of the java compiler?
What does this () mean in java?
What are the difference between string, string builder, and string buffer in java?
What's the base class in java from which all classes are derived?
What do you mean by compiler?
Explain which of the following methods releases the lock when yield(), join(),sleep(),wait(),notify(), notifyall() methods are executed?
Why are global variables used?
Can we use static class instead of singleton?