Frequently Asked Java Interview Q&A | Tricky Questions | Freshers | Experience | Part-1| JavaTechie
ฝัง
- เผยแพร่เมื่อ 28 ก.ย. 2024
- In this tutorial we will discuss Core Java frequently asked common interview questions and answer with Example , all the topics we will cover in upcoming tutorial
#javatechie #CoreJava #Interview #QA
GitHub:
github.com/Jav...
Blogs:
/ javatechie4u
Facebook:
/ 919464521471923
guys if you like this video please do subscribe now and press the bell icon to not miss any update from Java Techie
Disclaimer/Policy:
--------------------------------
Note : All uploaded content in this channel is mine and its not copied from any community , you are free to use source code from above mentioned GitHub account
Very nice concept and helpful for interview, wating for next video,thanks basnat for sharing such a good content.
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
With the amount of JAVA knowledge you have, you can invent your own language brother. Stay blessed for sharing great information for free.
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
Please upload interview questions for all topics like spring boot, Spring, Webservices, core java and collections
Thank You Basant for this video. This is so much much helpful.
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 😃
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
learned many new things
Your channel is my first preference for all java related,
wish you more and more success Basant
Thank you so much for following javatechie and so happy to hear it’s your first preference
Amazing Expanantion... please keep posting such informative videos...
Hi Basant, Trust me you have the best teaching skills and its super easy to learn and understand with your presentation, I just subscribed your channel felt sorry for not checking this channel till now. Thanks for your efforts. Hope you will make more interview questions.
Thank you so much buddy for appreciating it 🙂. Keep learning 👍
Thanks Basant ! Great content, eagerly waiting for the next series on this.
Good content. Please upload Multithreading and Collections interview questions too.
Yes i will
Thanks for this great video!!
Thanks alot Basant for this, This clears a lot of topics. Eagerly waiting for Part 2.
I like the way you describe all things. Easily cachable.
Thank you so much Basant for this amazing session. Waiting for next part
Very useful video sir.. expects more video like this for interview preparation. thanks alot.
Will cover
Please cover threading with executor services and then jump on to Spring boot and hibernate
best video for clearing interview
Again i want to say - it's great 👍 Thank you so much - I hope many people are getting Jobs after watching your videos
I request to other guys also please add some beautiful comments if it's really worth for you
Again Thanks ❤️
Thanks for sharing this.. can you please make part 2 with all advance java related asap..
Yes I will
Thank you sir, very informative video 👏👏
Thank you for this great content
Very good explanation with content 👍
Thanks alot.Its very usefull session
Thank you Basant. The way of explaining concept is really good.
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, video is to the point! Interview questions on other technologies will be definitely helpful including relational database queries.
It’s very helpful
Great session ,Thanks
Do make video on gRPC with spring boot
Yes it's in queue
amazing lecture sir
Very nice
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.
Many thanks sir...,but I am not getting part 2 video
Check below link th-cam.com/video/GO67C7V-IbQ/w-d-xo.html
Ok sir👍,thank you..
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 😊
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 🤗
please add subtitle
Thank you
Sir, why we include @Configuration at @SpringBootApplication main class, when externally in general we don't use any @Bean in main class. Isn't it unnecessary, inefficient & verbose.
No significant of using this @Configutation is different
How your IOC will know that your main class it self is a bean
@@Javatechie so u mean, @ComponentScan will register main class as bean in IoC, when it'll have @Configuration?! But sir, isn't main class has only static method?
Yes it have only main class but there is no restriction to add other member right
@@Javatechie sir why we need unnecessary in-advance main class bean when we aren't having @Bean annotated method in main class? Again, I'll ask my 1st question. As main class have default only one static method due to jvm understand static main(), which can be called by using className. Then why we need to make main class as bean?
Suppose in future we need to add @Bean method, we can always do that explicitly by using @Configuration.
I'm still confused.
Aadi I will let you know
String is thread safe ..
Yes my mistake
Btw Nicely explain everything Sir . Create also spring boot and microservices interview series.
@@TheTravellerVlogs99 yes buddy it's in my queue
nice intro song..could you share what song is that?
At 1:05:00 we are not even getting.setName() method....?
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
It is very much useful.
Thank you for this useful content!!! It would be really helpful for those who wants to brush up the Java skills.
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
@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
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.
Your video and way of explain to the concept are good ..
Thank you for the detailed explanation with examples 👍
For compiler error, you say it will cry. That sounds funny 😆
😂😂
Hi very informative. Thanks, while comparing string, buffer,builder showing string is not thread safe.
String is thread safe
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 .
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
Thanks Basant , You save us from crying in interview :)
😀😂 exactly ..👍
😂
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.
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
This is by far the most detailed interview Q&A series thankyou sir! for this gold content!!
At 55:55, there is a typo under String. It should be Thread safe.
Agreed!
Till date best video with clear answers of all questions keep it up man thanks
Thank you so much for explaining all the concepts in a neat and clean manner.
Thanks but we want more situation based coding interview questions for 6 years experience
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
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
Oh, I loved the term it will cry.. haha. Especially on the throwing part from parent to child vice versa. :D
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
Hi Thanks for covering all the important questions, I had one query in question #20 is String is threadsafe? since its immutable in nature
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.
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 Bro for your awesome video.
Eagerly waiting for next videos on this topic.
Your SpringBoot and MicroServices videos are amazing.
Thanks buddy 😊
Checked and unchecked exception handling in overriding scenarios,that you missed Bhai.
This is the best content Basand. Thanks alot for this.
It's Basant buddy
This was awesome👏✊👍 Please make more videos like this. Thank you
Best ...to the topic...❤
Nice! do video on Multithreading and executor service bro
Yes will do in sequence
Thank you so much ❤ please provide video for how to explain project
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
Thank you. so much.
for(;;)
{ System.out.println("Thank you Java techie ❣️ ");
}
Brilliant video !
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 🤩
It's really good content please add more interviews questions about collections and spring
Yes I will
Hi basanth nice
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 🤞
Really it is very much helpful, Can you please create a video experienced interview questions for multithreading ?
Thank you for this video... Subscribed and forwarded this video to my friends. Waiting for upcoming interview series.
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: th-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
Thankyou sir .. ❤️❤️ these kind of explanation are always beneficial
waiting for your next video on interview questions on spring and hibernate
Great Explaination in details each topics.
Thanks 🙏🙏
Really it was helpful for me in understanding the String immutable. Great. Good Job buddy
Basant. Your videos and way of explaining to the concept are too good and I really learned a lot from many videos posted on your channel. Keep Posting, will support you for sure
Thanks Dinesh
Sir i want part 2 java interview questions
Please check th-cam.com/video/GO67C7V-IbQ/w-d-xo.html
Sir how to get that Questions PDF?
Drop me text in javatechie4u@gmail.com. i will share
very helpful
Thank You for this video.great help for my future interview .
Basant its really good content please try to do more.