java Q/A
Showing 21 - 30 of 31 results
Answer: Composition is exactly like Aggregation except that the lifetime of the ‘part’ is controlled by the ‘whole’. This control may...
- Interview
- November 21, 2023
Answer: Inheritance provides an object with the ability to acquire the fields and methods of another class, called base class. Inheritance...
- Interview
- November 21, 2023
Answer: There are two types of Polymorphism in Java: We can perform polymorphism by Method Overloading and Method Overriding. Compile...
- Interview
- November 21, 2023
Answer: Polymorphism is the ability of programming languages to present the same interface for differing underlying data types. A polymorphic...
- Interview
- November 21, 2023
Answer: Abstraction and encapsulation are complementary concepts. On the one hand, abstraction focuses on the behavior of an object. On...
- Interview
- November 21, 2023
Answer: Encapsulation provides objects with the ability to hide their internal characteristics and behavior. Each object provides a number of...
- Interview
- November 21, 2023
Answer: Abstraction is the process of separating ideas from specific instances and thus, develop classes in terms of their own functionality,...
- Interview
- November 21, 2023
Answer: Not 100%. Java does not satisfy all the OOP conditions (predefined types must be objects) because it uses eight...
- Interview
- November 21, 2023
Answer: Object Oriented Programming (OOP) includes:
- Interview
- November 21, 2023