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 |
When does the compiler supply a default constructor for a class?
Difference between operator overloading and function overloading
0 Answers Tavant Technologies, Virtusa,
What is a numeric string?
Can you explain the cs option of java interpreter?
Interface A { String test(); } Interface B { int test(); } Create a class AB which must implements both A & B interfaces.
What are dot operator queries?
What is the importance of finally block in exception handling?
Why do inner class cannot have static declaration except static nested class?
Explain cookies?
What is the base class for error and exception?
What is the do while loop syntax?
Which data type is a class in java?