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 use of generics? When was it added to the Java development Kit?

0 Answers   Impetus,


What is the program compilation process?

0 Answers  


Can we initialize the final blank variable?

0 Answers  


What do you mean by a JVM?

0 Answers   GE,


What are the pillars of java?

0 Answers  


byte a=5; byte b=5; byte c=a+b; System.out.println(c); whats the o/p?

7 Answers   NIIT, Wipro,


Can you create an object of an abstract class?

0 Answers  


What is use of set in java?

0 Answers  


What is the best definition for data?

0 Answers  


What is a package?

2 Answers  


Which access specifier can be used with class ?

0 Answers  


Why we use methods in java?

0 Answers  


Categories