Question
a.
Aggregation
b.
Composition
c.
Encapsulation
d.
Association
Posted under Java Programming
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 object has its own lifecycle and child object cannot belong to another parent object?
Similar Questions
Discover Related MCQs
Q. Method overriding is combination of inheritance and polymorphism?
View solution
Q. Which component is used to compile, debug and execute java program?
View solution
Q. Which component is responsible for converting bytecode into machine specific code?
View solution
Q. Which component is responsible to run java program?
View solution
Q. Which component is responsible to optimize bytecode to machine code?
View solution
Q. Which statement is true about java?
View solution
Q. Which of the below is invalid identifier with the main method?
View solution
Q. What is the extension of java code files?
View solution
Q. What is the extension of compiled java classes?
View solution
Q. How can we identify whether a compilation unit is class or interface from a .class file?
View solution
Q. What is use of interpreter?
View solution
Q. Which of these package is used for text formatting in Java programming language?
View solution
Q. Which of this class can be used to format dates and times?
View solution
Q. Which of these method returns an instance of DateFormat that can format time information?
View solution
Q. Which of these class allows us to define our own formatting pattern for dates and time?
View solution
Q. Which of these formatting strings of SimpleDateFormat class is used to print AM or PM in time?
View solution
Q. Which of these formatting strings of SimpleDateFormat class is used to print week of the year?
View solution
Q. Which of the following is not a class of java.util.regex?
View solution
Q. What is the significance of Matcher class for regular expression in java?
View solution
Q. Object of which class is used to compile regular expression?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Java Programming? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!