@javatechie .... 55:24 You have mentioned String is "Not thread Safe". String is Immutable & we can use it in multithreaded environment right .So my question is => Immutability doesn't Guarantee Thread Safety? Plz correct me if am wrong ....!! By the way you explained all the interview Questions very well.
Thank you for this great content. It would be great help if you can make the similar video for spring and microservices interview questions. Thank you.
It was an excellent presentation ..thanks for your effort ..can't wait to learn more from your upcoming videos on java,spring,hiberate,microservice. Please keep them coming.
I am just ready to support you other than just subscribing and liking the video. It would have been great if you had some full fledged udemy course or something like that.
Hi Sir, just a bit more elaboration on the Inherited exception handling, IF the parent method doesn't throws any exception then child can thorw only runtime exception not compile time exception. If the parent method throws broader exception like "Exception" then child can thow any kind of ecxeption, or it is not necessary to throw any exception
Coming this weekend preparing PPT is taking too much time buddy . Every day giving 2 hours to prepare PPT that's why it's taking time . Keep in touch ☺️
If method throws RuntimeException then caller method no need to catch or throws furrther, in your example as you are extedended Exception class that why we have catch or throws further, instead if we extend RuntimeException then its not needed to catch or throws
Hi basant in one of the question where you are mentioning diffrence between String, Stringbuffer and String Builder there you have pointed out String is not thread safe but String is actually thread safe correct?
Thanks buddy . It required more time to prepare PPT that's the reason I am not able to give time for this . definitely I will try to upload one end of this year
47:59 if there are two objects then why hashcode of both the objects are same String str = new String("interview"); String str1 = "interview"; System.out.println(str.hashCode()); System.out.println(str.intern().hashCode()); System.out.println(str1.hashCode());
@@Javatechie hello sir, my doubt is not around intern method. my doubt is str == str1 is coming as false mean they both are pointing to different object. but when we check their hashcode then they are coming as same. so two object with the same hashcode is not possible and if both are pointing to same object as hashcode is same then == operator should have return true so its contradicting... their hashcode should be different as str is point to the object present inside heap and str1 is pointing to the object present in SCP. both are in the heap but they are two different objects String str = new String("interview"); String str1 = "interview"; System.out.println(str == str1); //false System.out.println(str1.hashCode()); System.out.println(str.hashCode()); o/p:- false 503107969 503107969
For SCP: String str = "techie"; str = str.concat("java"); System.out.println(str); Output: techiejava However, in string pool, this is newly created. so str will point to a new reference of string in SCP?
Thanks a lot for creating such nice content , i have spent my weekend watching your videos which is really knowlegeable and engaging , i can binge watch it every weekend now 🤩
To make a class immutable, we have to clone the object before assigning it to our instance variable. Even if you return a clone or new variable when getting the instance variable, they will still have access to the list that was passed at the time of object creation. If any changes are made to that list, it will alter the content of our object. Therefore, to maintain immutability, we need to ensure that the object's internal state is not directly accessible or modifiable. Making a deep copy of the mutable objects during construction or assignment is a common approach to achieving this goal. Please correct me if I am wrong
Hi Basant bhai can you make any real time project using spring boot and microservices so that it will be very helpful for me while attending the interviews.Please please can you do that one.
Thanks of the great content with use cases. I have seen many videos but the missing part in those videos is real project use cases. Can you please also make video on how to explain project, project architecture and how to explain non-functional requirement like security, scalability on project.
Based on my understanding return will go back to the calling method and will not go back anymore.. but it seems the behavior changed during this try-catch-finally? is it only on this scenario? thanks
Sir, how to answer this question. Q- After java 8, since we have default and static methods in Interface now, so now what is the need of Abstract class? Pls help.
Sir, how to answer this question. Q- After java 8, since we have default and static methods in Interface now, so now what is the need of Abstract class? Pls help.
With the amount of JAVA knowledge you have, you can invent your own language brother. Stay blessed for sharing great information for free.
Thanks basant I m waiting for transaction handling as well either series are one complete video thnx for all your video lot a learn
Transaction isolation propagation pending it's bit difficult for me to convert theory to program but I will try once I get time
@javatechie .... 55:24 You have mentioned String is "Not thread Safe". String is Immutable & we can use it in multithreaded environment right .So my question is => Immutability doesn't Guarantee Thread Safety? Plz correct me if am wrong ....!! By the way you explained all the interview Questions very well.
Yes correct immutable doesn't guarantee thread safety
Thank you for this great content. It would be great help if you can make the similar video for spring and microservices interview questions. Thank you.
Yes I will do that
Thank you for this useful content!!! It would be really helpful for those who wants to brush up the Java skills.
Thanks Basant , You save us from crying in interview :)
😀😂 exactly ..👍
😂
Marker interfaces are discontinued or omitted from Java 5 onwards,
why are we still using Serializable & Cloneable interfaces?
Is it omitted ? Not sure I will check and update you
Your video and way of explain to the concept are good ..
Please upload interview questions for all topics like spring boot, Spring, Webservices, core java and collections
It was an excellent presentation ..thanks for your effort ..can't wait to learn more from your upcoming videos on java,spring,hiberate,microservice. Please keep them coming.
I am just ready to support you other than just subscribing and liking the video. It would have been great if you had some full fledged udemy course or something like that.
Udemy I didn't planned yet but will try
really useful content. i have no words to describe the way you clear all my doubts.
Thank you for the detailed explanation with examples 👍
For compiler error, you say it will cry. That sounds funny 😆
😂😂
Thank You Basant for this video. This is so much much helpful.
Hi Basant, its a nice video and useful. Please do more videos on Spring Boot, Rest API and Spring Security concepts.
Tanks Basant!! I like your teaching and please make more java tricky interview Q&A video.
Hi Sir,
just a bit more elaboration on the Inherited exception handling,
IF the parent method doesn't throws any exception then child can thorw only runtime exception not compile time exception.
If the parent method throws broader exception like "Exception" then child can thow any kind of ecxeption, or it is not necessary to throw any exception
Very nice concept and helpful for interview, wating for next video,thanks basnat for sharing such a good content.
Hi Basant,
Thanks for compilation and explanation with practical examples.
Minor correction At 55:42
String would be thread safe as well.
Yes buddy it's my mistake 🤠 i realise later
Hi very informative. Thanks, while comparing string, buffer,builder showing string is not thread safe.
String is thread safe
This is by far the most detailed interview Q&A series thankyou sir! for this gold content!!
Thanks but we want more situation based coding interview questions for 6 years experience
Till date best video with clear answers of all questions keep it up man thanks
Very practical explanations Basant. Keep up the good work. Would love to see FAQ's on Collection Framework as well!
Coming this weekend preparing PPT is taking too much time buddy . Every day giving 2 hours to prepare PPT that's why it's taking time . Keep in touch ☺️
@@Javatechie thanks a lot
sir, I have one request, pls make a video for interview question and answer for Microservices and springboot with Spring cloud
I will do that
Thank you so much for explaining all the concepts in a neat and clean manner.
If method throws RuntimeException then caller method no need to catch or throws furrther, in your example as you are extedended Exception class that why we have catch or throws further, instead if we extend RuntimeException then its not needed to catch or throws
Yes
Hi basant in one of the question where you are mentioning diffrence between String, Stringbuffer and String Builder there you have pointed out String is not thread safe but String is actually thread safe correct?
My bad i spell it wrong. You are correct string is thread safe .
Ur.. effort is valuable....keep posting other topics like spring boot, microservice, hibernate, cloud technology
Thanks buddy . It required more time to prepare PPT that's the reason I am not able to give time for this . definitely I will try to upload one end of this year
@@Javatechie Thanks ..Keep posting
Thanks for this great video!!
Nice! do video on Multithreading and executor service bro
Yes will do in sequence
Good content. Please upload Multithreading and Collections interview questions too.
Yes i will
Oh, I loved the term it will cry.. haha. Especially on the throwing part from parent to child vice versa. :D
Thanks Bro for your awesome video.
Eagerly waiting for next videos on this topic.
Your SpringBoot and MicroServices videos are amazing.
Thanks buddy 😊
This was awesome👏✊👍 Please make more videos like this. Thank you
It's really good content please add more interviews questions about collections and spring
Yes I will
Your channel is like our paid learning institute ...
Infact more than that ☺️
Thanks Basant sir for sharing such an amazing knowledge to us...🙏
Thanks buddy keep learning 😃
At 55:55, there is a typo under String. It should be Thread safe.
Agreed!
for(;;)
{ System.out.println("Thank you Java techie ❣️ ");
}
Thank you so much ❤ please provide video for how to explain project
Thanks for sharing this.. can you please make part 2 with all advance java related asap..
Yes I will
Great Explaination in details each topics.
Thanks 🙏🙏
Thank you for this video... Subscribed and forwarded this video to my friends. Waiting for upcoming interview series.
Thankyou sir .. ❤️❤️ these kind of explanation are always beneficial
Brilliant video !
47:59 if there are two objects then why hashcode of both the objects are same
String str = new String("interview");
String str1 = "interview";
System.out.println(str.hashCode());
System.out.println(str.intern().hashCode());
System.out.println(str1.hashCode());
Do you know about intern() method?
@@Javatechie hello sir, my doubt is not around intern method. my doubt is
str == str1 is coming as false mean they both are pointing to different object. but when we check their hashcode then they are coming as same. so two object with the same hashcode is not possible and if both are pointing to same object as hashcode is same then == operator should have return true so its contradicting... their hashcode should be different as str is point to the object present inside heap and str1 is pointing to the object present in SCP. both are in the heap but they are two different objects
String str = new String("interview");
String str1 = "interview";
System.out.println(str == str1); //false
System.out.println(str1.hashCode());
System.out.println(str.hashCode());
o/p:-
false
503107969
503107969
@@Javatechie please reply sir
Buddy since string it self a class so hashcode and equals method will call from object class
Really it is very much helpful, Can you please create a video experienced interview questions for multithreading ?
Best ...to the topic...❤
It’s very helpful
For SCP:
String str = "techie";
str = str.concat("java");
System.out.println(str);
Output: techiejava
However, in string pool, this is newly created. so str will point to a new reference of string in SCP?
Yes
waiting for your next video on interview questions on spring and hibernate
Basant its really good content please try to do more.
Thank You for this video.great help for my future interview .
Really it was helpful for me in understanding the String immutable. Great. Good Job buddy
Thanks a lot for creating such nice content , i have spent my weekend watching your videos which is really knowlegeable and engaging , i can binge watch it every weekend now 🤩
Thank you. so much.
Amazing Expanantion... please keep posting such informative videos...
please add subtitle
To make a class immutable, we have to clone the object before assigning it to our instance variable. Even if you return a clone or new variable when getting the instance variable, they will still have access to the list that was passed at the time of object creation. If any changes are made to that list, it will alter the content of our object. Therefore, to maintain immutability, we need to ensure that the object's internal state is not directly accessible or modifiable. Making a deep copy of the mutable objects during construction or assignment is a common approach to achieving this goal.
Please correct me if I am wrong
You are correct 🤞
it is very helpful do same as on springboot and microservices
This is the best content Basand. Thanks alot for this.
It's Basant buddy
Do make video on gRPC with spring boot
Yes it's in queue
Thanks Basant! this was good quick refresh off those concepts
Hi Basant bhai can you make any real time project using spring boot and microservices so that it will be very helpful for me while attending the interviews.Please please can you do that one.
Please check out this playlist
Tools: ua-cam.com/play/PLVz2XdJiJQxz_55RIJL8mjO6nx_T87LVD.html
@@Javatechie hi basant thanks for the reply, actually I am asking for to develop one project like cart application or banking application
Thanks of the great content with use cases. I have seen many videos but the missing part in those videos is real project use cases. Can you please also make video on how to explain project, project architecture and how to explain non-functional requirement like security, scalability on project.
Thanks Basant video is really helpful 🤙🔥
Amazing content sir, Questions with examples 🤩, Thanks much
Based on my understanding return will go back to the calling method and will not go back anymore.. but it seems the behavior changed during this try-catch-finally? is it only on this scenario? thanks
very helpful
Thankyou so much. Awesome explanations. Really helpful..
Very useful to us. I am comparing with u to explain like u. I couldn't explain feeling very sad but I want job.. 😭😭😭😭
You will get it . Be strong and positive
Thank you so much Basant for this amazing session. Waiting for next part
55:21 Hi Basant - Here the String is "immutable", then why its mentioned as "not thread safe"? It is Thread safe right?
Yes it's thread safe . My mistake
@@Javatechie Thank You! really appreciate for all your content. Its really helpful.
@@Milkyway____ thanks buddy 😊
Excellent 👍
Very Helpful please add more questions and videos..
Thanks a lot, you made this look so simple which good example
Good session
Thank you so much...very helpful
Hi Thanks for covering all the important questions, I had one query in question #20 is String is threadsafe? since its immutable in nature
Thank you sir and way of explain to the concept are good ..
Thanks
Thanks Basant bhai for the amazing videos..
Thanks basant. Your all videos extremely good and neat explanation. please don't stop uploading new concept videos...
Sir, how to answer this question. Q- After java 8, since we have default and static methods in Interface now, so now what is the need of
Abstract class? Pls help.
Sir, how to answer this question. Q- After java 8, since we have default and static methods in Interface now, so now what is the need of Abstract class? Pls help.
String is Thread Safe as it is Immutable, may I know why you mentioned it is not @55:15
Yes it's thread safe my mistake
@@Javatechie love your videos man.. great job , one can crack Java interview easily with your content… keep rocking..
@@satishdhavann thank you buddy 🤗
Hi basanth nice
I love the way of your explanation.... 🙏
Checked and unchecked exception handling in overriding scenarios,that you missed Bhai.
Sir i want part 2 java interview questions
Please check ua-cam.com/video/GO67C7V-IbQ/v-deo.html
give some real time
examples of java design patterns
What If we can set employee.doj.setDate(20);
We still able to modify. Please suggest
In getter method return clone object of date then update value won't reflect
Thanks alot.Its very usefull session
Have never seen this kind of explanation. Thanks a lot sir
Can you please upload real time project example in java spring boot service request response payload how to develop logging framework
Okay I will
Many thanks sir...,but I am not getting part 2 video
Check below link ua-cam.com/video/GO67C7V-IbQ/v-deo.html
Ok sir👍,thank you..
Sir how to get that Questions PDF?
Drop me text in javatechie4u@gmail.com. i will share
Thank you sir, very informative video 👏👏
wow sir its very helpful to us sir thank you sir
Sir interview questions on spring boot security with jwt & OAuth2 in Microservices...plz
Yes I will cover
Thanks .. Your all videos are really helpful .