Question: Kindly solve 1,3,5,6,8 no. 4 05 Marks Briefly answer the following: 1. Consider the Ben Ten character and his transformation into different Aliens, briefly discuss

Kindly solve 1,3,5,6,8

Kindly solve 1,3,5,6,8 no. 4 05 Marks Briefly answer the following: 1.

no. 4 05 Marks Briefly answer the following: 1. Consider the Ben Ten character and his transformation into different Aliens, briefly discuss which OOP pillar may implement over this character. 2. Inheritance is used for code reusability, discuss what makes difference between the "has a" relationship and is a relationship. List with the reallife examples. 3. Java does not support multiple inheritance using classes due to diamond problem. Briefly explain diamond problem with code example. 4. Differentiate among the static, final, and finally keyword. 5. As C++ uses destructor to release space of unused object discuss how java reclaims space from unused objects. 6. How would you throw custom exception? How would you re-throw exception? Discuss with code example 7. Differentiate between checked and unchecked exception. Briefly explain with real life scenario. 8. Explain the constructor chaining with code example. 9. Differentiate between abstraction and Encapsulation. Discuss advantages and disadvantages of interfaces. 10. Briefly explain composition. List five real examples of composition

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!