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

Tasks | Level 4 | Lesson 6

Java Collections
Level 4 , Lesson 6
Available
8
Task
Java Collections, level 4, lesson 6
Locked
Weak references
Analyze the example. Inside the main method, create a Monkey object and then create a weak reference (WeakReference) to it.
14
Task
Java Collections, level 4, lesson 6
Locked
Cache based on SoftReference
Implement the SoftCache class's get, put, and remove methods: The AnyObject get(Long key) method must return an AnyObject from cacheMap using key. If key isn't in cacheMap, then return null. The AnyObject put(Long key, AnyObject value) method must add a key-value pair to the map.
Comments (3)
TO VIEW ALL COMMENTS OR TO MAKE A COMMENT,
GO TO FULL VERSION
Hoist Level 2, San Diego, United States
11 January 2024
Greeting from San Diego, Ca
MaGaby2280 Level 41, Guatemala City, Guatemala
30 June 2021
I feel sooo proud... 1000 tasks achieved!!! 💪💪💪
Denys Level 41, Ukraine
29 March 2021
1000 tasks. Yeaaaah! (without Games)