Core Java - Interview Questions and Answers for 'Overridding' | Search Interview Question - javasearch.buggybread.com
Javasearch.buggybread.com

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.
Label / Company      Label / Company / Text

   



Core Java - Interview Questions and Answers for 'Overridding' - 3 question(s) found - Order By Rating

 Q1. Explain method overridding.Core Java
 This question was recently asked at 'Ksolves'.This question is still unanswered. Can you please provide an answer.


 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     overridding  polymorphism     Asked in 1 Companies


Related Questions

 Any real life example of Overloading and Overridding ?
  Can we reduce the visibility of the inherited or overridden method ?
 Write a Program / Code showing Inheritance and overridding


 Q2. Can we reduce the visibility of the inherited or overridden method ?Core Java
Ans. No.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     java   oops   access specifier   overriding   overridding   inheritence   yes-no


Related Questions

  What are points to consider in terms of access modifier when we are overriding any method?
  Why every object constructor automatically call super() in Object before its own constructors?
  How compiler handles the exceptions in overriding ?
  what is covariant return type?
  Are constructors inherited? Can a subclass call the parent's class constructor? When?
  Difference Between this() and super() ?
  Does a class inherit the constructor of its super class?


 Q3. what will be the output ?

class Animal {
public void eat() throws Exception {
}
}

class Dog2 extends Animal {
public void eat(){}
public static void main(){
Animal an = new Dog2();
an.eat();
}
}
Core Java
Ans. Compile Time Error: Unhandled exception type Exception

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     java   code   coding   overridding   late binding   exception handling   abstract class   abstract methods


Related Questions

  Differences between abstract class and interface ?
  Difference between Abstract and Concrete Class ?
 If an Abstract class has only abstract methods, What's the difference between such a class and an interface ?
  What are the design considerations while making a choice between using interface and abstract class ?
  How is Abstraction implemented in Java ?
 Difference between Base Class, Derived Class , Abstract Class and Concrete Class ?
 What is an abstract class ?
  Shall we use abstract classes or Interfaces in Policy / Strategy Design Pattern ?
  Will this code Work ? If not , Why ?
  Is java.util.Date an abstract Class ? Is java.util.Calendar an abstract Class ?


 Q4. Which of the following is false ?Core Java
a. A Class cannot override both hashcode and equals method.
b. A class can override both hashcode and equals method.
c. A Class must override hashCode method if its overridding equal method.
d. A Class can override hashCode even if its not overridding equals method.

Ans.a. A Class cannot override both hashcode and equals method.


Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked: