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

What is the purpose of encapsulation?

0 Answers  


What is literal example?

0 Answers  


How to sort array of 0 and 1 in java?

0 Answers  


do I need to use synchronized on setvalue(int)? : Java thread

0 Answers  


What is printwriter in java?

0 Answers  






Is java hard to learn?

0 Answers  


What is the difference between panel and frame ?

7 Answers   HCL, IBM, Raim Techno Solutions,


what is difference between throw and throws in exception?

48 Answers   Spenco,


What is difference between string and new string?

0 Answers  


What is the difference between ArrayList and Vector? which one is better in Java

0 Answers   SkillGun Technologies,


What is java in simple terms?

0 Answers  


What is integer valueof?

0 Answers  


Categories