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

Search Java Interview Questions


 2098 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 'Ample softwares' - 2 question(s) found - Order By Newest

  Q1. How is multiple inheritance implemented in Java ?Core Java

Ans. There was no multiple inheritance in java before version 8 as implementing multiple interfaces cannot be termed as inheritance.

With Java 8 , came the concept of default methods wherein the class implementing the interface carries the default implementation from the interface and hence facilitating multiple inheritance.

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

   Like      Discuss      Correct / Improve     multiple inheritance   inheritance   oops concept     Credit Suisse  Amdocs  Ample Softwares  Tudip Technologies  Edifecs  VMWare  NSEiT  Exterro  theScore  BlackRock        frequent


Related Questions

  What are the difference between composition and inheritance in Java?
  Why every object constructor automatically call super() in Object before its own constructors?
  How compiler handles the exceptions in overriding ?
  Difference between Compositions and Inheritance ?
 Which of the following Java feature promotes access protection or Hiding ?

a. Inheritance
b. Encapsulation
c. Abstraction
d. Composition
  Which of the following is tightly bound ? Inheritance or Composition ?
  Does a class inherit the constructor of its super class?
  What is Maven's order of inheritance?
  What is Maven's order of inheritance?
  Can we compose the Parent Class object like this ?


  Q2. Why java doesn't support multiple Inheritance ? or Explain Java Diamond Problem.Core Java2017-01-09 11:45:34

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     multiple inheritance  diamond problem     Sirius Computer Solutions  Hewlett Packard (HP)  Sun Trading  Amdocs  Ample Softwares  Tudip Technologies  Edifecs  VMWare  NSEiT  Credit Suisse  Exterro  theScore  BlackRock      basic        frequent




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

2 person from are looking for questions for 'Ample softwares'. Connect with them to better prepare for your interview.
X Close this

Help Us Improve.
Please share your
interview experience.

Company Name:   


Questions Asked: