One thing to note is direct equality (==) comparison of Wrapper Integer type will only work for values in range -128 to 127 because java caches this range of values in Integer cache and any Integer object instantiated will use references from this pool. If you try comparing Integer a = 128, Integer b = 128, a==b will give false, because now they point to separate memory locations. Hence always use .equals() for non primitive data type value comparison.
I don't like i didn't understand the part where you passing wrapper class object to function and changing that in that function doesn't change but when passing a student object and changes the id and it changes how, can any one explain me? 14:20
Java only supports pass-by-value even for references unlike C and C++. so a copy of reference is sent to the function and does not alter original reference-object state
Sir Multithreading and async programming per ek detailed playlist banao sir with a mini project.. this topic is covered by no one in you tube by anyone yet..
One thing to note is direct equality (==) comparison of Wrapper Integer type will only work for values in range -128 to 127 because java caches this range of values in Integer cache and any Integer object instantiated will use references from this pool. If you try comparing Integer a = 128, Integer b = 128, a==b will give false, because now they point to separate memory locations. Hence always use .equals() for non primitive data type value comparison.
perfect
Ab tu gaya beta, bohot mar khaega tu
you are best teacher i have buy a udemy top rated java course but still watching and learn from your videos
Hats off to you sirr !!
Brilliant explanation ❤🙏🙏
Har videos me isi tarha conceptual questions solve karo ache se samajh aja ta he.
Or Generics pr bhi ik video
dil se dhanyawaad explanation is op
Excellent sir 👍
Brilliant yaar!
Brilliant explanation thank you bade bhai
Excellent 😊
I don't like i didn't understand the part where you passing wrapper class object to function and changing that in that function doesn't change but when passing a student object and changes the id and it changes how, can any one explain me? 14:20
Java only supports pass-by-value even for references unlike C and C++. so a copy of reference is sent to the function and does not alter original reference-object state
bhai memroy anf GC k upar bhi ek video banavo na.
if is does not allow int then how int[]. List list = new ArrayList();
Bhiya lead code question ki series nikl dijyge jo interview me puche jate he mostly 😗
Yess bhaiya plzz as it is very hard and we didn't understand that by other tutors only u can make that easy .
which IDE is he working on?
intellijidea
❤
Integer n=123;
sout(n.charAt(1)); bro it is giving error .
bhai charAt() works on string type only
bhai video boht achhi hai. Sab samajh me aa rha hai but boolean ko बूलियन boldo yar. बूलिन mat bolo JK :')
Integer ka ref kyu change hua, woh bhi toh object hi hai? What's the missing logic here?
Sir Multithreading and async programming per ek detailed playlist banao sir with a mini project.. this topic is covered by no one in you tube by anyone yet..
Bhai tere baal the pahle ud gye kya . Or tu wahi hai na ja insta me gadi ke andar beth ke reel banta hai