What does it mean that a method or field is “static”?



What does it mean that a method or field is “static”?..

Answer / Kamlesh Yadav

A method or field is 'static' if it belongs to the class itself rather than an instance of the class. Static methods can be called without creating an object, and static fields are shared among all instances of the class.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

where to use join method and explain with real time senario?and programatical explenation also..

1 Answers   TCS,


Why can we not override static method?

1 Answers  


If a class is declared without any access modifiers, where may the class be accessed in java programming?

1 Answers  


what is the difference between Java Command Line and C command Line?

2 Answers  


What is use of inner class in java?

1 Answers  


what is the difference between AWT and SWING what is the advantage of using swing?

3 Answers  


What is the use of parseint in java?

1 Answers  


What is the difference between serializable and externalizable interfaces?

1 Answers  


What kind of variables a class can consist of?

1 Answers  


What is the preferred size of a component in java programming?

1 Answers  


What is float in java?

1 Answers  


What is the difference between a static and a non-static inner class in java programming?

1 Answers  


Categories