Top Tricky Java Interview Questions and Answers | Java Interview Questions and Answers | Code Decode

  Рет қаралды 87,561

Code Decode

Code Decode

Күн бұрын

Пікірлер
@croydon21H
@croydon21H 9 ай бұрын
Well done. I like (majority of) the questions. Interviews in India need Q & A type like this. In overseas people ask questions from their project to know the interviewee ideas from a practical point of view.
@swapnilbagul7502
@swapnilbagul7502 3 жыл бұрын
Recently ,I had a interview for JAVA... And interviewer asked the difference between the security provided by abstraction and Encapsulation......could you pls answer it....
@rajasekharb4667
@rajasekharb4667 3 жыл бұрын
Could you please explain the scenarios in realtime applications where we use these Factory Design pattern and Abstract Design pattern
@chandrarami1767
@chandrarami1767 2 жыл бұрын
Good thumbnails are good to entering into ur video...and u explain good with example....i just stick to till end....thx lot for ur thumbnails
@CodeDecode
@CodeDecode 2 жыл бұрын
🙂thanks Chandra 👍👍
@saivamsi4811
@saivamsi4811 3 жыл бұрын
You are giving really a wonderful content to the people. Thank you So much .A small suggestion from my side is a small snipped of code can be shown along with audio. That will give a better picture of the topic.
@CodeDecode
@CodeDecode 3 жыл бұрын
Thanks Sai. Sure, we have live demos in all videos except these quick interview Revision questions . We prepared them just have a quick look before interview. You don't even have to look at your phone number still u have your quick revision done. Rest all videos have Java code demonstrated 🙂👍
@RussianCyclop
@RussianCyclop 3 жыл бұрын
Thank you for your videos. A little note on this one, your info about bean scopes is outdated, there are 6 bean scopes now and there is no more global session scope.
@RamzanAli-vr1ww
@RamzanAli-vr1ww 3 жыл бұрын
Please, Create more videos for this, It was very helpful.
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure Ramzan 👍thanks
@kan123ish
@kan123ish 3 жыл бұрын
Anyhow we are using the != for checking the null pointer exception, then what is the need of using the optional class in java
@CodeDecode
@CodeDecode 3 жыл бұрын
the Optional class includes methods to explicitly deal with the cases where a value is present or absent. However, the advantage compared to null references is that the Optional class forces you to think about the case when the value is not present.
@kan123ish
@kan123ish 3 жыл бұрын
@@CodeDecode can you please explain in real time or with the example
@CodeDecode
@CodeDecode 3 жыл бұрын
@@kan123ish sure Keerthana we will create seperate video for that. 👍👍
@adwaitamohanty5049
@adwaitamohanty5049 3 жыл бұрын
Helpful for Interview Preparation. Please continue. Mam, could you please explain little more about hashmap changes on 1.8 I.e. what is that threshold value at which the Linkedlist changes to Balanced Tree.
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure Adwaita, we will create seperate video on this java 8 enhancement. 👍👍
@adwaitamohanty5049
@adwaitamohanty5049 3 жыл бұрын
@@CodeDecode okay. Thanks for your quick reply.
@CodeDecode
@CodeDecode 3 жыл бұрын
Any time 👍👍🙂🙂
@nethisaicharan3037
@nethisaicharan3037 3 жыл бұрын
Thank you for the video! When do you resume the microservices? Since it was started last week!
@CodeDecode
@CodeDecode 3 жыл бұрын
This week Nethi👍👍
@nethisaicharan3037
@nethisaicharan3037 3 жыл бұрын
@@CodeDecode Thank you so much
@CodeDecode
@CodeDecode 3 жыл бұрын
👍👍🙂🙂
@amitajadhav9200
@amitajadhav9200 3 жыл бұрын
Please make more videos like this for advanced questions...
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure Amita👍👍
@nagalakshmikesavan9198
@nagalakshmikesavan9198 3 жыл бұрын
Hey Thank you soo much for the video!! Can you explain Why optional class instead we can check for null using == ? This was asked in an interview
@CodeDecode
@CodeDecode 3 жыл бұрын
the Optional class includes methods to explicitly deal with the cases where a value is present or absent. However, the advantage compared to null references is that the Optional class forces you to think about the case when the value is not present.
@nagalakshmikesavan9198
@nagalakshmikesavan9198 3 жыл бұрын
@@CodeDecode Thank you!!
@CodeDecode
@CodeDecode 3 жыл бұрын
@@nagalakshmikesavan9198 👍👍🙃
@jabirshariff7378
@jabirshariff7378 3 жыл бұрын
Another great and useful video. . 😊 Ma'am you said Tuesday you will upload next video on microservices.. Waiting for that.. 😔
@CodeDecode
@CodeDecode 3 жыл бұрын
Right Jabir. But got stuck with this video. We are so sorry. We are working IT professionals, it's difficult to spare time for 2 videos in weekends. But it's almost ready we will put that video this week for sure. Thanks for bearing with us 👍👍
@jabirshariff7378
@jabirshariff7378 3 жыл бұрын
@@CodeDecode Thank you for the update ma'am:)
@sandeephr6298
@sandeephr6298 3 жыл бұрын
Hi , I have been following all your videos and it's amazing and very helpful , can you please create a tutorial on micro-service docker with MySQL
@CodeDecode
@CodeDecode 3 жыл бұрын
kzbin.info/aero/PLyHJZXNdCXsd2e3NMW9sZbto8RB5foBtp
@Thiru-zt5lw
@Thiru-zt5lw 2 жыл бұрын
you are doing an excellent job and there is no words to say about your contribution. Really i appreciate you from my bottom of my heart. Great Work ..
@CodeDecode
@CodeDecode 2 жыл бұрын
Thanks a lot 🙂
@Thiru-zt5lw
@Thiru-zt5lw 2 жыл бұрын
There is one interview question how will you migrate from structs to spring? How will you migrate from ant to maven? There is 5 million request how will you make sure and what's your suggestion to do scalable and how will you increase your performance.
@shubhisharma3790
@shubhisharma3790 3 жыл бұрын
Can you please elaborate the function of Optional class with Example. Couldn't understand its functioning.
@CodeDecode
@CodeDecode 3 жыл бұрын
Ok sure. We will create another video just on optional class
@abhayvarma5146
@abhayvarma5146 3 жыл бұрын
Please create more.. this is very good
@CodeDecode
@CodeDecode 3 жыл бұрын
sure we will create more soon.....
@khyatijoshi7809
@khyatijoshi7809 2 жыл бұрын
Really a help please continue with such video
@CodeDecode
@CodeDecode 2 жыл бұрын
Sure Khyati. We will continue with this series 🙂🙂👍👍
@shivamsawhney4263
@shivamsawhney4263 2 жыл бұрын
@@CodeDecode 98uyhk
@hemapriyaammu7365
@hemapriyaammu7365 3 жыл бұрын
In one of the interview they asked me to sort employee based on id and name? Can please tell how it was implemented in java8
@ANKITCHOUDHARYankitkrchy
@ANKITCHOUDHARYankitkrchy 3 жыл бұрын
Check sorted Comparator.comparing method and thanComparing() methods
@CodeDecode
@CodeDecode 3 жыл бұрын
Right Ankit 👍👍
@hemapriyaammu7365
@hemapriyaammu7365 3 жыл бұрын
@@ANKITCHOUDHARYankitkrchy I want for 2 employee objects
@abhinavmishra9690
@abhinavmishra9690 2 жыл бұрын
Thanks for such informative content
@CodeDecode
@CodeDecode 2 жыл бұрын
🙃🙃👍👍
@monikadhaterwal8285
@monikadhaterwal8285 2 жыл бұрын
Please also show answer on screen . Sometimes getting problem in understanding
@CodeDecode
@CodeDecode 2 жыл бұрын
Sure Monika 👍
@CodeDecode
@CodeDecode 2 жыл бұрын
Anything like : kzbin.info/www/bejne/q4amaJahn8x8ldE
@krishnareddy-ro2rp
@krishnareddy-ro2rp 3 жыл бұрын
Please do a video on serialization
@CodeDecode
@CodeDecode 3 жыл бұрын
sure we'll make one soon.....
@RajYadav-fy4lm
@RajYadav-fy4lm 3 жыл бұрын
Mam please make more videos for Java 8, multithreading, Spring. I am following your videos for my interview prep. Thank you for such content
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure Raj. If we get proper response we will keep on creating this series
@santhoshivempati9757
@santhoshivempati9757 3 жыл бұрын
@@CodeDecode yes please upload more videos for Java ma'am. Very useful for interview. Thank you so much...
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure Santhoshi, we will keep posting video in this series 👍👍
@gulfamhassan4635
@gulfamhassan4635 2 жыл бұрын
I ask this question regularly on interview but 80 % candidate fail to answer or not able to explain well. Q. Which method will execute if we call method by passing value null. Eg fx(null) public void fx(String s){ sop(1); } public void fx(Integer i){ sop(2); } If you think it print 1 then you are wrong.
@vitthalchandankar9128
@vitthalchandankar9128 2 жыл бұрын
public void fx(Integer i) : if argument is int here then o/p will be 1 but its Integer , hence compiler will throw ambiguity error.
@arushigupta105
@arushigupta105 Жыл бұрын
answer would be compile time error because the compiler gets confused with which method is being called since both are accepting non primitive data types so null can be accepted by both the methods
@ushirranjan6713
@ushirranjan6713 3 жыл бұрын
Thank you so much mam for all your videos. It's really very helpful for the interview preparation. Could please creat some more videos on java hibernate and spring
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure Ushir, we will continue this series👍👍
@csv2286
@csv2286 3 жыл бұрын
Need spring framework interview questions
@CodeDecode
@CodeDecode 3 жыл бұрын
Yes, that's remaining, we will upload that too 👍👍
@csv2286
@csv2286 3 жыл бұрын
@@CodeDecode Thanks for accepting my request
@brvikas4426
@brvikas4426 3 жыл бұрын
Ma'am please upload JDBC and Sql interview questions.
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure 👍
@AshutoshMohanty07
@AshutoshMohanty07 3 жыл бұрын
That was a nice and simple explanation about HashMap enhancement, Spring AOP and Garbage Collection enhancement. Can your team create some interview question on DS & Algo ? Thanks again for providing the informative content!
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure Ashutosh, ds algo is in pipeline 👍👍🙂🙂
@karthikeyanu2115
@karthikeyanu2115 3 жыл бұрын
Useful video. Can you just tell me how to clear cache in hibernate
@CodeDecode
@CodeDecode 3 жыл бұрын
session clear() method to clear the cache i.e delete all the objects from the cache. We can use session contains() method to check if an object is present in the hibernate cache or not, if the object is found in cache, it returns true or else it returns false.
@anilkumaryella3556
@anilkumaryella3556 3 жыл бұрын
Can you explain what is spliterator in Java
@usamaansari7903
@usamaansari7903 3 жыл бұрын
this interview question is for how much year of exp peoples ? cuz as a fresher don't knw this questions
@CodeDecode
@CodeDecode 3 жыл бұрын
Right, not all questions are required for freshers, but we were constantly getting comments to increase the level. Hence we increased the level a bit in this video
@madhuripandit1831
@madhuripandit1831 3 жыл бұрын
Thank you so much mam, you have helped me a lot during my preparation
@CodeDecode
@CodeDecode 3 жыл бұрын
Thanks 🙏🙏this means a lot to us 👍👍
@suryanshraghuvanshi9761
@suryanshraghuvanshi9761 7 ай бұрын
these types of question generally get asked in interviews
@CodeDecode
@CodeDecode 7 ай бұрын
Yes
@chotasafasaana
@chotasafasaana 3 жыл бұрын
Try answer little bit slowly ,its too fast to understand what exactly you are trying to say and it's confusing as well
@CodeDecode
@CodeDecode 3 жыл бұрын
Ok, we will reduce the pace from next video 👍👍
@chotasafasaana
@chotasafasaana 3 жыл бұрын
@@CodeDecode thanks...
@CodeDecode
@CodeDecode 3 жыл бұрын
Thanks for observing and helping us in improving👍👍
@nandanhj7053
@nandanhj7053 3 жыл бұрын
Excellent
@CodeDecode
@CodeDecode 3 жыл бұрын
Thanks
@AshishSharma-mf4sg
@AshishSharma-mf4sg 3 жыл бұрын
Amazing ✌️✌️✌️
@CodeDecode
@CodeDecode 3 жыл бұрын
Thanks Ashish 👍
@sudheerkumar-tp1mg
@sudheerkumar-tp1mg 2 жыл бұрын
Feedback is selected
@CodeDecode
@CodeDecode 2 жыл бұрын
🤓hehe thanks Sudheer. This is funny 😂
@dhirajctx
@dhirajctx 2 жыл бұрын
Awesome video
@CodeDecode
@CodeDecode 2 жыл бұрын
Thanks Dhiraj 🙂🙂
@SinghRahul-
@SinghRahul- 3 жыл бұрын
Plz come with micro service project.. Waiting
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure Rahul, next is micro services only then 👍👍
@nikhilsharma-kd4pi
@nikhilsharma-kd4pi 3 жыл бұрын
Thank you so much for these important questions..... Looking forward to get more from you🤞👍
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure Nikhil 👍👍
@vnvllucky3677
@vnvllucky3677 3 жыл бұрын
Mam real time project pleaseee
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure 👍
@naveenreddy7320
@naveenreddy7320 2 жыл бұрын
You did a great job by posting the trending java interview questions. sorry to say this, please don't say NOTHING BUT in every sentence. it doesn't make any sense out there.
@CodeDecode
@CodeDecode 2 жыл бұрын
Thanks for pointing it our. We worked on it and now it's no more used in recent videos 🙂🙂👍👍
@bhushandhapodkar7577
@bhushandhapodkar7577 2 жыл бұрын
Please explain with code
@CodeDecode
@CodeDecode 2 жыл бұрын
👍
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН
Accenture Java Interview 2022
15:27
CloudTech
Рет қаралды 38 М.
JAVA Interview Questions | HR Mock Interview | Advance Java, HTMl, Inheritance | Kiran Sir
29:17
The Kiran Academy - Java By Kiran
Рет қаралды 24 М.
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН