Skip to content

Commit bacf53e

Browse files
committed
Update README.md
1 parent 4dbd2da commit bacf53e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2422,7 +2422,7 @@ import java.lang.ref.SoftReference;
24222422
24232423
class MainClass {
24242424
public void message() {
2425-
System.out.println("Weak References Example");
2425+
System.out.println("Soft References Example");
24262426
}
24272427
}
24282428
@@ -2432,7 +2432,7 @@ public class Example {
24322432
MainClass g = new MainClass();
24332433
g.message();
24342434
2435-
// Creating Weak Reference to MainClass-type object to which 'g'
2435+
// Creating Soft Reference to MainClass-type object to which 'g'
24362436
// is also pointing.
24372437
SoftReference<MainClass> softref = new SoftReference<MainClass>(g);
24382438
g = null;

0 commit comments

Comments
 (0)