Answer Posted / 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 View All Answers
Write a java program that prints all the values given at command-line.
What does the exclamation mark mean in java?
How to do a true java ping from windows?
Write a program to print all permutations of string?
What is the difference between error and an exception?
Can an interface be final?
Explain the differences between abstraction and encapsulation?
How do you do exponents in java?
What are kinds of processors?
What are the rules for naming an array?
Variables used in a switch statement can be used with which datatypes?
What is hashtable and explain features of hashtable?
Why singleton is not thread safe?
What is an escape character in java?
Why is a string immutable?