in Education by
What is the default clone of HashSet? (a) Deep clone (b) Shallow clone (c) Plain clone (d) Hollow clone I have been asked this question in an international level competition. The question is from Data Structures-Set topic in division java.util – The Collections Framework of Java Select the correct answer from above options Java questions and answers, Java questions pdf, Java question bank, Java questions and answers pdf, mcq on Java pdf, Java questions and solutions, Java mcq Test , Interview Java questions, Java Questions for Interview, Java MCQ (Multiple Choice Questions),Core Java Questions, Core Java MCQ,core java interview questions for experiencedcore java interview questions for 3 years experience,java programming questions,core java interview questions for freshers,java interview questions and answers for freshers, java programming questions and answers pdf, java interview questions for beginners

1 Answer

0 votes
by
 
Best answer
The correct option is (b) Shallow clone Explanation: Default clone() method uses shallow copy. The internal elements are not cloned. A shallow copy only copies the reference object.

Related questions

0 votes
    Do we have get(Object o) method in HashSet. (a) True (b) False The question was posed to me ... java programming questions and answers pdf, java interview questions for beginners...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    What are the initial capacity and load factor of HashSet? (a) 10, 1.0 (b) 32, 0.75 (c) 16, ... , java programming questions and answers pdf, java interview questions for beginners...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    Which of these method of HashSet class is used to add elements to its object? (a) add() (b) ... java programming questions and answers pdf, java interview questions for beginners...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    Which of these method of Object class can clone an object? (a) Objectcopy() (b) copy() (c) ... java programming questions and answers pdf, java interview questions for beginners...
asked Oct 26, 2021 in Education by JackTerrance
0 votes
    Which of these is used as a default for a member of a class if no access specifier is used for it ... programming questions and answers pdf, java interview questions for beginners...
asked Oct 26, 2021 in Education by JackTerrance
0 votes
    Default Serialization process cannot be overridden. (a) True (b) False I got this question in a job ... questions and answers pdf, java interview questions for beginners...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    What is the range of short data type in Java? (a) -128 to 127 (b) -32768 to 32767 (c) - ... , java programming questions and answers pdf, java interview questions for beginners...
asked Oct 28, 2021 in Education by JackTerrance
0 votes
    What is the range of byte data type in Java? (a) -128 to 127 (b) -32768 to 32767 (c) - ... , java programming questions and answers pdf, java interview questions for beginners...
asked Oct 28, 2021 in Education by JackTerrance
0 votes
    An expression involving byte, int, and literal numbers is promoted to which of these? (a) int (b) ... programming questions and answers pdf, java interview questions for beginners...
asked Oct 28, 2021 in Education by JackTerrance
0 votes
    Which of these literals can be contained in float data type variable? (a) -1.7e+308 (b) -3.4e ... java programming questions and answers pdf, java interview questions for beginners...
asked Oct 28, 2021 in Education by JackTerrance
0 votes
    Which of these coding types is used for data type characters in Java? (a) ASCII (b) ISO-LATIN-1 ... programming questions and answers pdf, java interview questions for beginners...
asked Oct 28, 2021 in Education by JackTerrance
0 votes
    Which of these values can a boolean variable contain? (a) True & False (b) 0 & 1 (c) Any ... java programming questions and answers pdf, java interview questions for beginners...
asked Oct 28, 2021 in Education by JackTerrance
0 votes
    Which of these occupy first 0 to 127 in Unicode character set used for characters in Java? (a) ... programming questions and answers pdf, java interview questions for beginners...
asked Oct 28, 2021 in Education by JackTerrance
0 votes
    What is the order of variables in Enum? (a) Ascending order (b) Descending order (c) Random order ... programming questions and answers pdf, java interview questions for beginners...
asked Oct 28, 2021 in Education by JackTerrance
0 votes
    Which method returns the elements of Enum class? (a) getEnums() (b) getEnumConstants() (c) getEnumList( ... questions and answers pdf, java interview questions for beginners...
asked Oct 28, 2021 in Education by JackTerrance
...