CodeGym /Courses /Java Collections /Tasks | Level 4 | Lesson 8

Tasks | Level 4 | Lesson 8

Java Collections
Level 4 , Lesson 8
Available
14
Task
Java Collections, level 4, lesson 8
Locked
Phantom references
Analyze the example. Implement the Helper class's getPopulatedList method: 1) create a list that can store phantom references to Monkey objects; 2) add 200 references to the list using the queue returned by helper.getQueue().
14
Task
Java Collections, level 4, lesson 8
Locked
Caching
The Cache class is a generic class for caching objects. It works with generic classes that have: a) a public constructor with one K type parameter; b) a K getKey() method with any access modifier.
Comments (2)
TO VIEW ALL COMMENTS OR TO MAKE A COMMENT,
GO TO FULL VERSION
Justin Smith Level 41, Greenfield, USA, United States
2 November 2022
The cache one should definitely be rated hard. It involves using the Constructor and Method classes as well as their methods. This is all new content.
Andrei Level 41
2 July 2021
NIce tasks, I liked them, even though I didn't manage to do them by myself.