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


Please Help Members By Posting Answers For Below Questions

What is final, finally, finalize?

593


What is a top level class in java?

523


what is a thread pool in java and why is it used?

525


Explain the difference between private, public, package and protected in java?

593


Is java a utf 8 string?

524






What is a super method?

528


Is java a software?

511


Is an object null?

554


How we can declare a static variable?

650


What is the use of arraylist class in java?

550


Why singleton is not thread safe?

561


How can you set an applet’s height and width as a percentage?

510


What does sprintf mean?

525


What is a line break?

578


What are alternatives to java serialization?

596