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. |
|
| ||||
Interview Questions and Answers for 'Yodle' - 3 question(s) found - Order By Newest | ||||
Frequently asked to fresh graduates and less experienced developers. Among the first few questions in many interviews. | ||||
| ||||
Ans. Composition - has-a relationship between objects. Inheritance - is-a relationship between classes. Composition - Composing object holds a reference to composed objects and hence relationship is loosely bound. Inheritance - Derived object carries the base class definition in itself and hence its tightly bound. Composition - Used in Dependency Injection Inheritance - Used in Runtime Polymorphism Composition - Single class objects can be composed within multiple classes. Inheritance - Single class can only inherit 1 Class. Composition - Its the relationship between objects. Inheritance - Its the relationship between classes. | ||||
Sample Code for inheritance Sample Code for composition | ||||
Help us improve. Please let us know the company, where you were asked this question : | ||||
Like Discuss Correct / Improve  java   java concepts   inheritance  object oriented programming (oops)  oops concepts   composition  object oriented programming (oops)  oops concepts   inheritance  object oriented programming (oops)  inheritance vs composition  object oriented programming (oops)  oops concepts Asked in 29 Companies basic   frequent | ||||
Try 5 Question(s) Test | ||||
Related Questions | ||||
Difference between Composition 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 ? | ||||
Can we compose the Parent Class object like this ? | ||||
Does use of Final class enforces composition over Inheritance in Java ? | ||||
Which of the following Java features facilitates Dependency Injection - Inheritance or Composition ? | ||||
How are the concept of Association related to Composition and Inheritance ? | ||||
Is dependency injection possible if we don't have inheritance / Composition ? | ||||
What is composition ? | ||||
Frequently asked at Manhattan Associates ( Based on 2 feedback ) | ||||
| ||||
Ans. Its an anonymous method without any declaration. Lambda Expression are useful to write shorthand Code and hence saves the effort of writing lengthy Code. It promotes Developer productivity, Better Readable and Reliable code. | ||||
Sample Code for lambda | ||||
Help us improve. Please let us know the company, where you were asked this question : | ||||
Like Discuss Correct / Improve  java   java8   lambda expression   architecture Asked in 58 Companies expert   frequent | ||||
Try 1 Question(s) Test | ||||
Related Questions | ||||
Difference between final and effectively final ? Why is effectively final even required ? | ||||
Difference between Predicate, Supplier and Consumer ? | ||||
What are the problems one could face while working with serverless technologies like AWS Lambda ? | ||||
How does AWS Lambda handle failure during event processing? | ||||
Can you explain the integration between API Gateway and Lambda if we wish to develop services using these tools. | ||||
What would you do if you see an error thrown by a lambda function as "Access Denied" while doing something with S3 ? | ||||
What are the advantages and disadvantages of using Lambda over EC2 ? | ||||
What are the different trigger types in AWS Lambda ? | ||||
What does the following lambda expression means ? | ||||
| ||||
Ans. https://en.wikipedia.org/wiki/Database_normalization | ||||
Help us improve. Please let us know the company, where you were asked this question : | ||||
Like Discuss Correct / Improve  normalization  database Asked in 35 Companies intermediate   frequent | ||||
Related Questions | ||||
Difference between Normalization and Denormalization ? | ||||
Which of the two Normalization / Denormalization facilitate better performance ? Which of the two facilitate better space management ? | ||||