Strong References | Soft References | Weak References And Phantom References in java

  Рет қаралды 16,110

KK JavaTutorials

KK JavaTutorials

Күн бұрын

Пікірлер: 11
@nabilaq5759
@nabilaq5759 3 жыл бұрын
Phantom Refrence is not clear yet😌
@diegoramos27
@diegoramos27 3 жыл бұрын
why are you nullifying ?? isn't it supposed to be garbage collected after the method execution is over ? in practice you don't nullify objects...
@UkkosTukki
@UkkosTukki 2 жыл бұрын
the function is static, I believe this is the reason
@rahulsrivastava3552
@rahulsrivastava3552 4 жыл бұрын
I didn't understand phantom reference
@SurajYadav-yd2cu
@SurajYadav-yd2cu 2 жыл бұрын
in case of weak reference there is no need to make the emp = null , the whole concept of weak reference is that only ... if an object is made with a weak refernce than it will be a part of next GC cycle ..................... Suggestions are open ... plzz coreect me if i am wrong 🙂
@sandeepsangwan2534
@sandeepsangwan2534 2 жыл бұрын
It should be null. I tried it.
@SurajYadav-yd2cu
@SurajYadav-yd2cu 2 жыл бұрын
@@sandeepsangwan2534 right I was bit confused at that time 😉
@mrmf4712
@mrmf4712 2 жыл бұрын
so what is phantom reference?
@Ankit-vp7nt
@Ankit-vp7nt 4 жыл бұрын
Phantom reference not clear understanding
@AhsanAli-vz6mg
@AhsanAli-vz6mg 4 жыл бұрын
Superb
@NaturalPro100
@NaturalPro100 5 жыл бұрын
Nicely explained
WeakHashMap in Java | Internal Working of WeakHashMap in Java
9:24
KK JavaTutorials
Рет қаралды 8 М.
Weak References, Reachability, WeakSets, and WeakMaps
15:54
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 3,8 М.
БЕЛКА СЬЕЛА КОТЕНКА?#cat
00:13
Лайки Like
Рет қаралды 2,8 МЛН
Life hack 😂 Watermelon magic box! #shorts by Leisi Crazy
00:17
Leisi Crazy
Рет қаралды 21 МЛН
Офицер, я всё объясню
01:00
История одного вокалиста
Рет қаралды 5 МЛН
Разбираем на запчасти ConcurrentModificationException
13:07
Грамота от Кузьмича
Рет қаралды 408
Garbage collection in Java, with Animation and discussion of G1 GC
44:20
Ranjith ramachandran
Рет қаралды 489 М.
Lambda Expressions in Java - Full Simple Tutorial
13:05
Coding with John
Рет қаралды 747 М.
JAVA FAQ # 75 || What is the difference between wait() and sleep() methods in Java?
7:55
$GOBBURU_RAMESH_TECHNOLOGY_GENERAL$
Рет қаралды 128
9. Java Memory Management and Garbage Collection in Depth
48:48
Concept && Coding - by Shrayansh
Рет қаралды 81 М.
Java is ALWAYS Pass By Value. Here's Why
5:22
Coding with John
Рет қаралды 123 М.
Java Basics - Defensive Copy
21:01
MargretPosch
Рет қаралды 1,9 М.