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 java lang object?

0 Answers  


Is 0 true or false in java?

0 Answers  


Define a java class.

1 Answers  


Add a value x to array from index l to r where 0 <= l <= r <= n-1

0 Answers   Amazon,


What kind of variables a class can consist of?

0 Answers  






How do you escape json?

0 Answers  


What are packages in java?

1 Answers  


what really hapens when a object is created using new operator? 1.is it allocates memory to all variables and methods in the class with reference to that object?

3 Answers  


What flag up means?

0 Answers  


Can we synchronize static methods in java?

0 Answers  


What is jdbc api?

0 Answers  


how to print output with out using sop statements

5 Answers   UHG,


Categories