#7.4 Java Tutorial | Anonymous class with Interface

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

More Learning :

Donation:
PayPal Id : navinreddy20
Patreon : navinreddy20
Рекомендации по теме
Комментарии
Автор

Well done. I understood everything. Thank you. Keep on !

vladanulardzic
Автор

Wah!!! inspired not only by knowledge but how u separating videos

saikrishna
Автор

this tutorial is better than other paid tutorials from udemy or anyother websites

parikshithbekal
Автор

Thanks a lot Sir. I was having this confusion why people are using new keyword with interface everywhere. Finally you explained the logic why and how. Thank you :)

contactdi
Автор

these videos are very helpful, thank u sir for starting this series,

prateshtamhankar
Автор

Best book for java practice for full stack Development for beginners?

mahesha
Автор

please make latest videos on strings also in java tutorial

amanthakur
Автор

Plzzz make video on "Garbage Collections in java"

abhijeetnikam
Автор

Hi Navin,
I am having a query that we can neither create object of interface nor we can define the methods..so how is it working here i couldn't able to get it ?

nikhiljhawar
Автор

What will happen if interface has two methods, is it necessary to implement both the methods in the anonymous class/interface??

avijitsharma
Автор

interface Acc
{
void Pencil();
void pen();
}




public class HelloWorld{


public static void main(String []args){

Acc a=new Acc(){
public void Pencil()
{
System.out.println("Hello World");
}
public void pen(){
System.out.println("Pen Workd");
}

};

}
}
the second method pen() not printing anything why

youcodesolution
Автор

What after name Reddy ? Reddy? No self confidence ???

abhidita