Java - Interview Questions and Answers for 'Clover infotech' | Search Java Interview Question - javasearch.buggybread.com
Javasearch.buggybread.com
Share

Search Java Interview Questions


 2137 questions in repository.
 There are more than 200 unanswered questions.
Click here and help us by providing the answer.
Label / Company      Label / Company / Text

   



Interview Questions and Answers for 'Clover infotech' - 1 question(s) found - Order By Newest

 Q1. Why java doesn't support multiple Inheritence ?Core Java
Anonymous
Ans. class A {
void test() {
System.out.println("test() method");
}
}

class B {
void test() {
System.out.println("test() method");
}
}

Suppose if Java allows multiple inheritance like this,

class C extends A, B {
}

A and B test() methods are inheriting to C class.

So which test() method C class will take? As A & B class test() methods are different , So here we would Facing Ambiguity.

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

   Like      Discuss      Correct / Improve     java   oops   inheritence   multiple inheritence     Clover Infotech      basic        frequent


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?
  Are constructors inherited? Can a subclass call the parent's class constructor? When?
  Difference Between this() and super() ?
  How compiler handles the exceptions in overriding ?
  Can we reduce the visibility of the inherited or overridden method ?
  Does a class inherit the constructor of its super class?
  what is covariant return type?




Subscribe to Java News and Posts. Get latest updates and posts on Java from Buggybread.com
Enter your email address:
Delivered by FeedBurner



comments powered by Disqus
 

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:
         

X Close this

1 person from Ashburn are looking for questions for 'Clover infotech'. Connect with them to better prepare for your interview.
X Close this

Help Us Improve.
Please share your
interview experience.

Company Name:   


Questions Asked: