Java - Interview Questions and Answers for 'Cardinal health' | 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 'Cardinal health' - 2 question(s) found - Order By Newest

 Q1. What is multilevel inheritance ?Core Java2016-06-23 13:52:50

Ans. Multi Level Inheritance is multi level hierarchy of classes. Here is the example - http://www.buggybread.com/2015/09/java-se-class-diagram-classes-that_603.html

Class RoleList extends ArrayList which in turn extends AbstractList which in turn extends AbstractCollection.

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

   Like      Discuss      Correct / Improve     multilevel inheritance  inheritance  oops concepts     Charles Schwab  ZapBuild Technologies  Cardinal Health      basic

Try 1 Question(s) Test


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. What are design situations to use Singleton and Prototype Design Pattern ?Design2016-07-28 20:28:43

Ans. Both are creational design patterns.

Singleton is used when we would like to reuse an object if object is not supposed to hold request or thread specific information. Inversely Prototype is used in situations where we would like to reuse the object information but the request / thread may require it own data to be persisted.

In short, Singleton is used in situations where we can live with single object being shared across multiple requests or threads whereas Prototype is used when we need duplicate copies of objects.

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

   Like      Discuss      Correct / Improve     design pattern  singleton  prototype  creational design pattrn     Mphasis  JP Morgan  Fidelity  EPAM  Airline Tariff  Vimukti Technologies  Cardinal Health      expert

Try 1 Question(s) Test


Related Questions

  When should we use prototype scope and singleton scope for beans ?
 Does it make sense to clone an object which is supposed to be immutable ?
 What is a prototype design pattern ?
 What is the difference between Singleton and Prototype Bean scope in Spring ?




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 'Cardinal health'. Connect with them to better prepare for your interview.
X Close this

Help Us Improve.
Please share your
interview experience.

Company Name:   


Questions Asked: