Java Interview Questions | Macbook Contest

  Рет қаралды 42,279

Telusko

Telusko

Күн бұрын

Пікірлер: 15
@tanulakhwani
@tanulakhwani Жыл бұрын
Try with resources are used only with resources like db connections and file handling.
@shubhamghumare1602
@shubhamghumare1602 Жыл бұрын
Sir ...Maine spring security ke Kai sare vidio dekhe but muze samj me nhi aaya ki...how spring security work and how code flow means front end (React js) to backend .. Plz make video on spring security for beginners... And thank you for making such a interactive, interesting video for us... Love your teaching style and voice...love from Beed Maharashtra.
@atikkhochikar_5352
@atikkhochikar_5352 Жыл бұрын
Great stream
@sumant2000
@sumant2000 Жыл бұрын
You are correct; you can instantiate an interface by creating an anonymous class that implements the interface. Here's an example: ```java public interface MyInterface { void myMethod(); } public class Main { public static void main(String[] args) { MyInterface instance = new MyInterface() { @Override public void myMethod() { System.out.println("Anonymous class implementing MyInterface"); } }; instance.myMethod(); } } ``` In the code above, we create an anonymous class that implements the `MyInterface` interface and provides a concrete implementation of the `myMethod` method. We then create an instance of this anonymous class and call the `myMethod` method on it. So, while you cannot directly instantiate an interface, you can achieve it indirectly by creating an anonymous class that implements the interface and instantiating that class.
@vamsikrishnasarukolla1136
@vamsikrishnasarukolla1136 Жыл бұрын
Sir Is there any pdf for java interview questions?
@Wisdomizer
@Wisdomizer Жыл бұрын
What do tou think overriding is a polymorphism or not ?
@Deepusingh-ct6kx
@Deepusingh-ct6kx Жыл бұрын
Polymorphism
@sahanasahanamm5697
@sahanasahanamm5697 Ай бұрын
Run time polymorphism/ virtual polymorphism
@tataapparao7935
@tataapparao7935 Жыл бұрын
What we can use instead of finalize
@Wisdomizer
@Wisdomizer Жыл бұрын
🤯 Method is NOT a polymorphism convinsed, ... Sir please take care ...
@chanduyagnesh5501
@chanduyagnesh5501 Жыл бұрын
for freshers how you do interview means what you except from them
@todaylive3029
@todaylive3029 7 ай бұрын
Jvm is built in c++
@teacup1431
@teacup1431 Жыл бұрын
@chanduyagnesh5501
@chanduyagnesh5501 Жыл бұрын
Sir,can we call a method without knowing the method name,how?
Java New Features : Java 10 to Java 21
1:26:20
Telusko
Рет қаралды 35 М.
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
Java Interview Question | One Of The Best Mock Interview For Freshers & Beginners | Kiran Sir
35:19
The Kiran Academy - Java By Kiran
Рет қаралды 367 М.
MUST KNOW junior role JAVA interview questions
42:15
Keep On Coding
Рет қаралды 140 М.
Software Engineering Job Interview - Full Mock Interview
1:14:29
freeCodeCamp.org
Рет қаралды 1,6 МЛН
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН