Most Asked Tricky Core Java Interview Questions and Answers for Fresher and Experienced |Code Decode

preview_player
Показать описание
In Tricky Core Java Interview Questions and Answers for Freshers and Experienced video you will get top tricky core interview question asked in an Interview.

Udemy Course of Code Decode on Microservice k8s AWS CICD link:

Course Description Video :

You may be asked in java interview questions and answers pattern about :
What are the different ways we can break a singleton pattern pattern in Java?
Reflection
Serialization
Cloning
By Executor service, will create separate video on that.

One of the tricky part of java interview questions and answers are :
Difference between
NoClassDefFoundError
and
ClassNotFoundException?
java interview questions and answers for experienced people may be bit trickier.

Apart from String, what else predefined class we can use as Keys in A Map?

java interview questions and answers for experienced people will always cover some java 8 stuff
Given an Employee list , sort employees based on their salaries in desc order?

Java interview questions and answers will always cover top java interview questions and answers and java 8 always dominates it now a days
Fetch Top 3 salaried Employees?

Java interview questions and answers may be twisted to fetch result in different manner too as shown as below
Fetch all employees having salary less than 3rd highest salary?

Java interview questions and answers playlist is referenced below for easy access.

In top java interview questions and answers or for core java interview questions and answers , you will never be asked straight forward questions like below:

Why is char[] preferred over String for passwords?

In Java, Strings are immutable and are stored in the String pool. What this means is that, once a String is created, it stays in the pool in memory until being garbage collected. Therefore, even after you’re done processing the string value (e.g., the password), it remains available in memory for an indeterminate period of time thereafter (again, until being garbage collected) which you have no real control over.

Therefore, anyone having access to a memory dump can potentially extract the sensitive data and exploit it.

In contrast, if you use a mutable object like a character array, for example, to store the value, you can set it to blank once you are done with it with confidence that it will no longer be retained in memory.

Theses were some java interview questions and answers

Code Decode Playlists

Subscriber and Follow Code Decode

#JavaInterviewQuestionsandAnswers #JavaInterviewQuestions #Intellipaat #JavaInterview #CoreJavaInterviewQuestions #JavaInterviewQuestionsandAnswersForExperienced #JavaTutorial #JavaProgramming #JavaTutorialForBeginners
Рекомендации по теме
Комментарии
Автор

Would love to see a detailed video on different ways of breaking singleton pattern. Please make a video on it.

It would be helpful for many people

sanketh
Автор

This is what I’m looking for, no one explains simple code base examples for interview preparation. But this video has amazed me with live interview questions nd in a simple practical examples as well. Please keep posting videos on all other related latest technologies as well. Especially latest Python modules as Python is going to rock the world with a lot of upcoming libraries.

narendranani
Автор

ClassNotFoundException is a checked exception and occurs when the Java Virtual Machine (JVM) tries to load a particular class and the specified class cannot be found in the classpath.

shankardayal
Автор

Great, always there is something new to learn in your videos....! And please prepare video on executor service breaking Singleton. @Code Decode. Also would like to highlight as @shankar did that class not found is compile time because compiler forces us to handle that exception. It’s not like any other nullpointer exception which our compiler doesn’t, force to handle. That’s the key I think, but as you said we have to decide by seeing that whether compiler is checking DRIVER class or not, then I think no exception can be called as compile time exception. PLEASE CORRECT ME IF MY UNDERSTANDING IS WRONG.

muralikommuru
Автор

Mam, you are doing a great job.. it's helping a lot to quickly prepare for interviews..

TheITEngineer
Автор

Hi dear. Your videos are very helpful. I shared you videos to my friends. I am experienced in java. But refreshing java theory concepts by your videos. Now am looking for job change and I cleared several technical rounds.

devopsexpedition
Автор

You can use any class as a hashmap key. Primitives of course are not a class. Key just needs to implement equals and hashmap, even if it's in a bad or illogical way.

MrMikomi
Автор

Very clear explanation. Nowadays I became an addict of your videos, it really helping to brush up old things and learn so many new things. Can you please do more videos on Java 8 stream programs.

shamilraj
Автор

Thank you code decode for these videos.. Would like to see more on Multithreading and synchronization, also sql related interview questions. Thanks again :)

vijayakalgudi
Автор

@CodeDecode Amazing explanation Ma'am, would like to see more on streams coding questions also on sql query questions please, This is a great platform to refresh java!!

vijayakalgudi
Автор

Excellent video. Yes, few more java 8 scenario based questions, also scenario based for core java concepts - like abstract class, interface etc.. also we are asked how to create hashing on our own and something similar to strings as well?

karthikeyanrm
Автор

We can use minus (-) in front of compareTo
employeeList.stream().map(Employee::getSalary).sorted((e1, e2)->-e1.compareTo(e2)).collect(Collectors.toList());
and if we want the list in Ascending order with unique element use TreeSet while collecting. ie

coincidentIndia
Автор

more questions on streams like groupby functions . Thanks,

prashantkashyap
Автор

Nicely explained. Ofcourse, we need more detailed interview trending questions.

arkaroy
Автор

Please provide the java code for breaking Singleton patter. Will be really helpful

ghostneguz
Автор

Nicely explained.
We need more videos like this to crack the interview.

Avinashkumar-rezh
Автор

if we are making instance as private in singleton class how can we access that in main class to change it's reference?

rushikeshgodase
Автор

Hi! thank you for this video and pl.make more such videos

gokulaher
Автор

Very clearly explained. Please add more such scenario based videos.

shubhisharma
Автор

as always, excellent work by code decode.
good explanation.

jskr
visit shbcf.ru