PL: Java 2. Which of the following statements are true? (Select all that apply)
ID: 3580864 • Letter: P
Question
PL: Java
2. Which of the following statements are true? (Select all that apply)
a. java.util.PriorityQueue implements the java.util.Queue interface.
b. java.util.LinkedList implements the java.util.Queue interface.
c. java.util.ArrayList implements the java.util.Queue interface.
d. java.util.LinkedHashSet implements the java.util.Queue interface.
e. java.util.HashSet implements the java.util.Queue interface.
NOTE: Here are the attempts that I did, I got a few correct but I could not take the full points. Help please.
Link: https://scontent.xx.fbcdn.net/v/t1.0-9/15578624_1252653981467027_8301731984526875933_n.jpg?oh=d789ffab8db1b1c9d73ba69a8906a2f8&oe=58AE77AB
Link: https://scontent.xx.fbcdn.net/v/t1.0-9/15578718_1252653984800360_3690154616077623697_n.jpg?oh=3e4a5ae79199443f5a0183885f0793a6&oe=58F359D6
3. Which of the following statements are true?
a. All the methods in HashSet are inherited from the Collection interface.
b. All the methods in LinkedHashSet are inherited from the Collection interface.
c. All the concrete classes of Collection have at least two constructors. One is the no-arg constructor that constructs an empty collection. The other constructs instances from a collection.
d. All the methods in TreeSet are inherited from the Collection interface.
e. All the methods in Set are inherited from the Collection interface.
NOTE: Here are the attempts that I did, I got a few correct but I could not take the full points. Help please.
Link: https://scontent.xx.fbcdn.net/v/t1.0-9/15492236_1252655328133559_4321587104334001851_n.jpg?oh=b9767b9a70c09b1a4fb7315cd8d02dae&oe=58B59771
Link: https://scontent.xx.fbcdn.net/v/t1.0-9/15420894_1252655331466892_1390818707264196711_n.jpg?oh=020123fcec65397c7add8370bc27c65d&oe=58EDDB56
Link: https://scontent.xx.fbcdn.net/v/t1.0-9/15492180_1252655334800225_6482431882964178334_n.jpg?oh=948047560ab41e7202db143acbad51ea&oe=58B9124A
Link: https://scontent.xx.fbcdn.net/v/t1.0-9/15542447_1252655388133553_23604890414906481_n.jpg?oh=fc4fdeaa7c13bb3618ef1b0880da2977&oe=58FBEDCA
incorrect Question 46 Which of the following statements are true? java util HashSet implements the eue interface. java util.LinkedList implements the java.util.Queue interface. java util. PriorityQueue implements the java.util.Queue interface. java util.ArrayList impl the java.util Queue interface ements java util LinkedHashSet implements the java.util Queue interface. Question 46 Which of the following statements are true? java util.LinkedHashset implements the java utilQueue interface. java util.LinkedList implements the java util Queue interface. java util. PriorityQueue implements the java utilQueue interface. i java.util HashSet implements the ueue interface. ava util ArrayList implements the ja util.Queue interface. va 072 pts 0 2 ptsExplanation / Answer
The answers for the given mcqs are as follows
2) Answers
a. java.util.PriorityQueue implements the java.util.Queue interface.
b. java.util.LinkedList implements the java.util.Queue interface.
3)
a. All the methods in HashSet are inherited from the Collection interface.
b. All the methods in LinkedHashSet are inherited from the Collection interface.
e. All the methods in Set are inherited from the Collection interface.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.