Search Interview Questions | More than 3000 questions in repository. There are more than 900 unanswered questions. Click here and help us by providing the answer. Have a video suggestion. Click Correct / Improve and please let us know. |
|
| ||||
Interview Questions and Answers | ||||
| ||||
Ans. No. Static methods belong to the class and not the objects. They belong to the class and hence doesn't fit properly for the polymorphic behavior. A static method is not associated with any instance of a class so the concept of overriding for runtime polymorphism using static methods is not applicable. | ||||
Help us improve. Please let us know the company, where you were asked this question : | ||||
Like Discuss Correct / Improve  java   oops   static   static methods   java keywords   yes-no intermediate   frequent | ||||
Related Questions | ||||
Which of the following combination of keywords is illegal in Java ? a. static and transient b. transient and final c. static and synchronized d. abstract and final | ||||
How does volatile affect code optimization by compiler? | ||||
What is Volatile keyword used for ? | ||||
What is the use of Transient Keyword ? | ||||
Can we access instance variables within static methods ? | ||||
What is a Final Method ? | ||||
What is "super" used for ? | ||||
What is "this" keyword used for ? | ||||
Which of the following keyword is not permitted for outer class ? | ||||