Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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 compositionStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started