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
What are the Main functions of Java?
what is thread in Java ?
can any body body expalin best definitions & best real time exaples for opps concepts.
Why is whitespace important?
How do I remove a character from a string in java?
Which container method is used to cause a container to be laid out and redisplayed in java programming?
What do you mean by garbage collection used in java?
Explain the inheritance?
What is the purpose of declaring a variable as final?
How does queue work in java?
What is map in java?
Can you call one constructor from another if a class has multiple constructors?
23. Storage space in java is of the form Stack Queue Heap List 24. What is java code embedded in a web page known as Applets Servlets scriptlets snippets 25. Which of the following attributes are compulsory with an
Explain the difference between jvm and jre?
What happens when main () method is declared as private?