Why static keyword is introduced in java ?

Showing Answers 1 - 1 of 1 Answers

balakrishnan

  • May 27th, 2015
 

static keyword is used to access a class information without creation of a new instance(new object) of the class.Good example is main method of java class. Every time when a java program compiles JVM call the main method without creating new instance of that class.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions