Default Method Definition in Interface | Java 8

preview_player
Показать описание
First feature of java 8

Follow on Facebook:

Subscribe to our other channel:
Telusko Hindi :
Рекомендации по теме
Комментарии
Автор

I am SO GRATEFUL, thank you very much. Well explained and clarity achieved :)

saadiyafourie
Автор

please make a video on when to use abstract class .when to use interface.

kamakshijayaraman
Автор

really thanks it helped a lot!!! you are awesome

nikhilratnalikar
Автор

Why do we do like this :-
List<Integer> numList = new ArrayList<>();
and why not
ArrayList<Integer> numList = new ArrayList<>();

malayalitravelsuk
Автор

I have 2 questions
1) why we have to define that method in interface only, we can define method inside implemented class only?
like message method with body can be write inside implementation class AndroidPhone, there will be no change in interface then

2) if we want to enhance or add something in default method in implentation class, can we do that?
Can we override default method too?

kritikagupta
Автор

If we are able to define methods in the interface itself then what would be the difference between the abstract class which has concrete implementation and interface where we do have default definition of the method!

avinashkesarla
Автор

what about static method in Interface? do video for also??

saikumar-kkkh
Автор

Is default is only keyword ...or it's access modifier is also default ?

rupalipatil
Автор

As a Career GAP Candidate StartUp Companies Lo Job Ela Techukovaalo Cheppandi Sir (or) Mam🙏🙏🙏??

As a Career GAP(6 years) Student How to to get Java Developer Job in this Year 2024???

Hi, I have a 6 years CAREER GAP. how can i get JAVA DEVELOPER Job in 2024 ???

hi bro, 😭😭Naa Friend Okariki OLD UAN number activate kaavatledhu😭😭, Error: 🙏🙏🙏Basic Details like Name, Aadhaar & DOB are mismatched ani Vastundhi🙏🙏🙏 Bro..???

hm alage, within seconds lo (Vs Code) and (Chrome tab) ela change avutunnayi Bro, Please tip cheppu.

Two companies(XYZ & IJK) lo job vachindhi fake pettanu & alage 1.5 months 2 Companies lo Work Chesanu, Now i am looking for Job, my doubt is Those 2 companies are creating my pf or Not? further in future is it Effect my carrier?

saikumar-kkkh
Автор

Why we are not declared that call method as default that is also by default public/abstract

crazyvideos
Автор

if 2 interfaces have same method names but do different functions and a class implements both the interfaces then which method will it call

Raj_Gada
Автор

here default is a keyword or an access specifier ?

adarshverma
Автор

sir if u override object class methods in interface we will get compile time error ?

dhoniramakrishna
Автор

Sir can we use instance variables in default interface.??

sairawadwa
Автор

Can we have more than one default methods in interface? if default method we are defining in the interface it seems like same in the abstract class, what would be the difference between interface and abstract class in java8

justfeelit
Автор

how you comment 4 rows at the same time, and how you uncomment them ?

asennikolaev