MUST KNOW junior role JAVA interview questions

preview_player
Показать описание


0:00 Intro
0:34 Full Java Course
1:01 Method Overloading vs Overriding
4:12 Heap vs Stack Memory
6:19 Print Statement Code Snippet
7:58 Shallow vs Deep Copy
11:11 Garbage Collector
12:58 Method vs Constructor
14:44 this
16:00 Abstract Class
17:37 super
19:52 Generics
22:30 final
24:21 protected
26:35 equals() vs ==
28:23 Pass by Value or Reference
30:38 Singleton Class
32:43 Composition
35:15 static Block
36:12 Remove from List
37:09 ArrayLists
38:53 Comparator vs Comparable
Рекомендации по теме
Комментарии
Автор

Good job on this one! It would be great to see an advanced/intermediate JAVA interview questions.

Musa-lfyn
Автор

This example would be better in explaining deep copy(constructor method):
public Example(Example original) {
this.x= original.x;
}

Example example2 = new Example(example1);
example2.x = 200;
sout(example1.x);

leohuang-
Автор

The protected explanation is incorrect. Enemy and Ghost didn't have to be in the same package. Ghost could have accessed the protected name filed as long as it extends Enemy class. Your example would be correct with default modifier which is package-private.

pejko
Автор

You didn’t explain what is deep copy, you just crated a new object.
But what if I want to create exactly the same copy of existing instance?

wilddiscoveryzone
Автор

great job on this one - just noticed a slight nuance to observe. I think the default access modifier Eg no modifier will allow other classes inside the package to access the variables/methods but protected will only allow child classes which extends their parent class to access those variables/methods which are protected.

paulallen
Автор

I was a c# dev for 5 years but I’m interviewing for a Java position today. Thanks for the refresher!

markmahowald
Автор

Seems like a great interview. I usually make similar questions to juniors. The problem comes with companies that basically make juniors grind leetcode like monkyes :_(

kzelmer
Автор

Thanks a lot Sam, I am having my technical interview for Internship this week, and your video is so helpful, fingers crossed

michaelsafwat
Автор

I have an upcoming interview and your explainations is so good.

kyahAndoy
Автор

Thank you so much for sharing the valuable knowledge. I'm junior and I learned many thing from your video. Good job. It'd be great for junior developer

thanhhaiinh
Автор

8:00 this doesn't really explain what shallow and deep copies are. It's not a deep copy if you just create a new object and populate it manually. The default implementation of clone() on Object creates a new instance of that class with new references to the same referenced object fields of the original - this is a shallow copy. You can override clone() to create a deep copy by creating new referenced object fields. This way if anything changes in the referenced object fields it is only reflected in the new deep copy, not the original.

meostyles
Автор

Please make a video of some more advanced questions...Very Good work

esterdaci
Автор

more videos like this please, I love it, thankyou!

chrisstela
Автор

Nowadays the default garbage collector is multithread, so it basically doesn't stop the app, it will stop really quickly each thread, but never all at once. Junior's doesn't have to know that, but it's always good to make it clear to all seniority, even tho threads are something kinda complex for entry-level devs xD (and basically we don't have good online material about that, no course is that advanced, and u mostly find things about it in books, mainly using C as example, I've even seen one in Assembly LoL)

InVunter
Автор

lol ... i am definitely failing my next interview

thething
Автор

I needed to see this I'm graduating next may with my degree in Computer programming and Development 😊 this is helpful 😊

GaymerGirlx
Автор

This is so easy, once I have applied to EPAM for Junior Position, their test was like 1500 times harder

TigranMovsisyanTB
Автор

Wow! Thank you for showing the examples!

liliabekuzinaensosense
Автор

I would have liked more explanation on where we are using. But thanks for this.

tejassravanthikasulanati
Автор

I loved this video, thank you, super useful!

bkr_