Search Interview Questions
| 3335 questions in repository.|
There are more than 200 unanswered questions.
Click here and help us by providing the answer.
Have a video suggestion.
Click Correct / Improve and please let us know.
|Java - 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|
| 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?|
|Can we access instance variables within static methods ?|
|What is Volatile keyword used for ?|
|What is the use of Transient Keyword ?|
|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 ?|