Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional SQL Server 2012 Internals And Troubleshooting

Authors: Christian Bolton, Justin Langford

1st Edition

1118177657, 9781118177655

More Books

Students also viewed these Databases questions