adplus-dvertising
frame-decoration

Question

What is it called where child object gets killed if parent object is killed?

a.

Aggregation

b.

Composition

c.

Encapsulation

d.

Association

Answer: (b).Composition

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is it called where child object gets killed if parent object is killed?

Similar Questions

Discover Related MCQs

Q. What is it called where object has its own lifecycle and child object cannot belong to another parent object?

Q. Method overriding is combination of inheritance and polymorphism?

Q. Which component is used to compile, debug and execute java program?

Q. Which component is responsible for converting bytecode into machine specific code?

Q. Which component is responsible to run java program?

Q. Which component is responsible to optimize bytecode to machine code?

Q. Which statement is true about java?

Q. Which of the below is invalid identifier with the main method?

Q. What is the extension of java code files?

Q. What is the extension of compiled java classes?

Q. How can we identify whether a compilation unit is class or interface from a .class file?

Q. What is use of interpreter?

Q. Which of these package is used for text formatting in Java programming language?

Q. Which of this class can be used to format dates and times?

Q. Which of these method returns an instance of DateFormat that can format time information?

Q. Which of these class allows us to define our own formatting pattern for dates and time?

Q. Which of these formatting strings of SimpleDateFormat class is used to print AM or PM in time?

Q. Which of these formatting strings of SimpleDateFormat class is used to print week of the year?

Q. Which of the following is not a class of java.util.regex?

Q. What is the significance of Matcher class for regular expression in java?