Hey man u r really awesome, i have never been explained this concept Or never heard this concept. Really thankfull to you man.. Keep rocking
@ankittripathi61503 жыл бұрын
Sir I did have 3 years of experience in Vmware but after learning through your channel only i have switched to testing by showing the same 3 years experience in that. Your way of teaching is excellent.
@saikrishnagaddam88573 жыл бұрын
Bro are you serious?
@priteshms3 жыл бұрын
I never heard about this concept. Learnt something new. Thank you so much Naveen for all your efforts.
@SameerKumar-yu1xi3 жыл бұрын
I will not comment thx for the contents that Naveen sir posting... Bcz he is doing it and helping in thankless manner... Just appreciating his hardwork and for motivating us🙌🙌🙌
@durgaprasad46483 жыл бұрын
Thanks bro for making us Technicaly strong.
@nikhildandge86093 жыл бұрын
Also , this caching concept is not available for Float and Double . ( because between 0 and 1, there infinite values that lie within the range and can't decide which is the most common range used) I liked the video very much @naveen . Thank you very much
@madhuriparjane30543 жыл бұрын
Hello Naveen, you are simply outstanding in explaining the important and complex concepts..Really like the way you put the things in short, crisp but understandable manner. Thanks for this awesome work.😊
@suryajit73 жыл бұрын
thanks man - I will ask this question in my interviews now
@amitkumarshinde40903 жыл бұрын
I will definitely share ur videos everywhere
@raji13583 жыл бұрын
You are awesome because I learnt a lot from you.
@riteshranjanmishra9673 жыл бұрын
Thank you Naveen for covering important interview questions
@syedafarzana9603 жыл бұрын
You are the best sir plz explain all the recent java coding questions asked in interview
@sksingh3293 жыл бұрын
So integer caching works in range of Byte data type.. It was intresting. Thanks for sharing
@AshokKumar-ye3zc3 жыл бұрын
Very informative video. Where can we use this concept in the framework?
@sridharlanka27213 жыл бұрын
Informative & truly interesting 🧐
@pvgr00073 жыл бұрын
Simply awesome 😎😎😎
@saikiran-zi1sm3 жыл бұрын
Thanks for uploading this video helping me a lot sir how to string and float comparison this question was asked at the time of interview.
@minku20083 жыл бұрын
Thank you Naveen ,expecting more 👏👏👍
@rajatgarg5823 жыл бұрын
Thanks @naveen for all the stuf..
@sivapavan4903 жыл бұрын
U r explanation is good sir. Why u did not upload complete java course
@shilparathod15733 жыл бұрын
Lai Bhari.Again Thank you for sharing
@gag973 жыл бұрын
Nyc sir and we need ur support in further videos too
@shankumondal28813 жыл бұрын
Awesome 👍
@vibhagupta26183 жыл бұрын
informative video
@sriyanshjain66453 жыл бұрын
Thank you so much for this concept❤️
@shashibhushanv63013 жыл бұрын
Good one
@ragavaanvesh3 жыл бұрын
Thank you so much for this info😍
@PradeepKumar-fq7fz3 жыл бұрын
Thanks Naveen, how to work with strings without using built-in methods please make a video on these topics I hope you understand thanking you in advance
@tejatummala3 жыл бұрын
Hi Naveen, Any tips for Kafka automation? Can you suggest me some tools to Test Kafka.
@nikhilgayki88073 жыл бұрын
Thanks naveen...
@himanshupokhriyal6883 Жыл бұрын
Output -) both are equal because data is same in both variable num1, num2
@pradeeppattar88623 жыл бұрын
Yesterday I got this type of question.
@eduartzina3 жыл бұрын
Hello, very good knowledge here. in my case, I had a situation of : taken two arrays. array 1 = 5 and array2 = 2. the question was How to compare every index in the array and how to find how much should I add to array1 to be equal to array2? it was a tricky one and to me, this was the first time having to work with two arrays and compare values. How will you approach this situation?
@nilstoned75933 жыл бұрын
int[] arr1 = {1,2,3,4,5}, arr2 = {6,7}; int sizeDifference = 0; if (arr1.length > arr2.length) { sizeDifference = arr1.length - arr2.length; System.out.println("Items to be added in Array2 : " + sizeDifference); } else { sizeDifference = arr2.length - arr1.length; System.out.println("Items to be added in Array1 : " + sizeDifference); }
@eduartzina3 жыл бұрын
@@nilstoned7593 thank you.
@TusharKavle3 жыл бұрын
Thanks Naveen..Cheers
@sameerkadgaye20483 жыл бұрын
Thank You Sir
@phanikumarvishnubhotla18043 жыл бұрын
Thanks @naveen
@krantikamble47843 жыл бұрын
Hi Naveen Sir, Could you please update on How to Create Selenium WebDriver Screenshots and Integrate With Jenkins
@vengateshm21223 жыл бұрын
Where can we apply this concept in practical?
@ashwinikhanna3 жыл бұрын
Only in interviews!
@vengateshm21223 жыл бұрын
@@ashwinikhanna Ha ha ha
@sainathvallampatla51353 жыл бұрын
Thanks Naveen
@SameerKumar-yu1xi Жыл бұрын
Hello Naveen, Greetings!!! I was trying this scenario in my system and it works as mentioned in the video.. But i tried comparing Integer a = 123 and int b = 123. In this case it matches and showing true as results... Also tried out of the bond number for integer caching ie 130 or any number outside the range.... It was matching.... Could you pls explain
@VipinDahiya89 Жыл бұрын
concept is for comparing two object and in second you are using int var not object
@anjalimurkute13783 жыл бұрын
Thanks a lot ..🙏
@vishal2525263 жыл бұрын
Hi Naveen, could you please explain below scenrio. Integer i=300; sout(i==i) ; output-> true why it is not false???
@balachandar62063 жыл бұрын
Both I are pointing same variable
@Erlisch13373 жыл бұрын
oh its a Java thing...that explains why Ive never heard of this
@naveenautomationlabs3 жыл бұрын
Yeah that's the hidden concept of java :)
@rajatprajapati71403 жыл бұрын
But range for int is larger than - 128 to 127.Then why does it give true only for - 128 to 127 ?
@sreevidyarejeesh86953 жыл бұрын
👍👍
@murahariraofam64732 жыл бұрын
What is the purpose of integer caching?
@rayinimadhu3 жыл бұрын
Sir my name is Madhu I'm Complet my Degree BCOM camarce how to came IT SOFTWARE side frst which course lm luarn...... please give me a gidence..
@Viplove_QA_SDET3 жыл бұрын
👍👍👍❤️
@muralikrishnap43373 жыл бұрын
What is auto box
@kathiresanm42803 жыл бұрын
-128 to 127 is a range of byte data type then why the Integer is compared byte range
@sayhifive24153 жыл бұрын
But @Naveenautomationlab You still comparing references not values. So no point of values are being in range or out of range.
@naveenautomationlabs3 жыл бұрын
No it matters. Check the full video when you go out of range of integer Cache it will give you false. So range matters here.
@sauravMAitra963 жыл бұрын
@@naveenautomationlabs if i use long then it will be right .. isn't it?
@sonatejas72243 жыл бұрын
all wrapper classes override toString() to return value of the object the reference variable is pointing to
@rivermartinez1073 жыл бұрын
What happens if you use .equals()?
@weirdspecie63563 жыл бұрын
You have to rewrite it with string cuz .equals doesnt work on int
@chintulovers3 жыл бұрын
Is this applicable for double
@ManishKumar-qx1kh3 жыл бұрын
All wrapper classes come with caching but remember u can use caching only when u r using either primitive assignment or using valueof() method. If u are using new keyword while creating the object then it won't work.
@blazegaming38103 жыл бұрын
Idk what ur java application is doing my java application even show results as equal on 300000 comparing on both integers. I have cross-check by giving other integer values but it always shows same unless both integers r different. Idk what ur machine is doing.
@naveenautomationlabs3 жыл бұрын
Are you sure ? Which jdk version you are using? Can you paste your code here?
@blazegaming38103 жыл бұрын
@@naveenautomationlabs okay so old version will show different result??? My java version shows 11.0.1
@naveenautomationlabs3 жыл бұрын
Integer Caching got added after 1.5 only. Make sure you are using Integer not int.
@blazegaming38103 жыл бұрын
@@naveenautomationlabs Thanks a lot. U r correct I was using int In place of Integer ✌🏻✌🏻✌🏻
@naveenautomationlabs3 жыл бұрын
Good :)
@loknathshankar54233 жыл бұрын
Why is there such a thing?
@satishkumarsingh59343 жыл бұрын
Both are equal
@snehaparekh85023 жыл бұрын
Equalas values are same
@arushigupta24003 жыл бұрын
equal
@chintulovers3 жыл бұрын
Djava.lang.Integer.IntegerCache.high=2000
@ShinAkuma3 жыл бұрын
My question is not "what actually is integer caching". My question is, where do you even find this information ? In my 7 years of studying Java and I've never even heard of this before. O_O
@naveenautomationlabs3 жыл бұрын
This question was asked to me once at the time of interview few years back.