Briefly answer the following: 1. Consider the Ben Ten character and his transformation into different Aliens, briefly
Fantastic news! We've Found the answer you've been seeking!
Question:
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 real-life examples.
- 3. Java does not support multiple inheritances using classes due to the diamond problem. Briefly explain the diamond problem with the code example.
- Differentiate among the static, final, and finally keyword.
- 4. As C++ uses a destructor to release space of the unused object, discuss how java reclaims space from unused objects.
- 5 How would you throw a custom exception? How would you re-throw the exception? Discuss with a code example
- 6. Differentiate between checked and unchecked exceptions. Briefly explain with a real-life scenario.
- 7. Explain the constructor chaining with a code example.
- 8. Differentiate between abstraction and Encapsulation. Discuss the advantages and disadvantages of interfaces.
- 9. Briefly explain composition. List five real examples of composition.
ANSWER THESE QUESTIONS IN OOP JAVA LANGUAGE
Related Book For
Database management systems
ISBN: 978-0072465631
3rd edition
Authors: Raghu Ramakrishan, Johannes Gehrke, Scott Selikoff
Posted Date: