Try with resources are used only with resources like db connections and file handling.
@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 Жыл бұрын
Great stream
@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 Жыл бұрын
Sir Is there any pdf for java interview questions?
@Wisdomizer Жыл бұрын
What do tou think overriding is a polymorphism or not ?
@Deepusingh-ct6kx Жыл бұрын
Polymorphism
@sahanasahanamm5697Ай бұрын
Run time polymorphism/ virtual polymorphism
@tataapparao7935 Жыл бұрын
What we can use instead of finalize
@Wisdomizer Жыл бұрын
🤯 Method is NOT a polymorphism convinsed, ... Sir please take care ...
@chanduyagnesh5501 Жыл бұрын
for freshers how you do interview means what you except from them
@todaylive30297 ай бұрын
Jvm is built in c++
@teacup1431 Жыл бұрын
❤
@chanduyagnesh5501 Жыл бұрын
Sir,can we call a method without knowing the method name,how?