What is basic concept of static in java ?



What is basic concept of static in java ?..

Answer / narayanarao bp

Static means one per class, not one for each object no matter how many instance of a class might exist. This means that you can use them without creating an instance of a class.Static methods are implicitly final, because overriding is done based on the type of the object, and static methods are attached to a class, not an object. A static method in a superclass can be shadowed by another static method in a subclass, as long as the original method was not declared final. However, you can't override a static method with a nonstatic method. In other words, you can't change a static method into an instance method in a subclass.

Is This Answer Correct ?    15 Yes 0 No

Post New Answer

More Core Java Interview Questions

why java does not contain pointers?

13 Answers   Infosys, TCS,


Can a vector contain heterogenous objects?

0 Answers  


When a byte datatype is used?

0 Answers  


Can we define static methods inside interface?

0 Answers  


What is array pointers ?

0 Answers   Amdocs,






What is the difference between throw and throws? What is the similarity between try and throw?

2 Answers  


What is a method type?

0 Answers  


What is the use of collections in java? How it is implemented in real time applications?

2 Answers  


When does Exception occurs?

3 Answers  


Why cant we define System.out.println() inside a class directly?

5 Answers  


what is business objects?

2 Answers  


Does any tag exists in HTML to upload and download files ?

3 Answers  


Categories