#65 What is Interface in Java

  Рет қаралды 251,612

Telusko

Telusko

Күн бұрын

Пікірлер: 48
@DeeperRed-of1gp
@DeeperRed-of1gp 8 ай бұрын
At 7:26 it is said that "we are doing implement not extends so only methods are available and variables are not available". Actually, regardless of what we do implementation of interface or extends of parent class, the variables also gets passed on in child. When we do Subclass obj = new Subclass(); we can see that variables are accessible. The thing with interface is that as the variables are final, so we can't change it. But it is available in child class! Maybe it was just Slip of tongue by Telusko! Enjoying the series so much! Thank you for posting it!❤
@DeeperRed-of1gp
@DeeperRed-of1gp 7 ай бұрын
Actually according to GPT , In Java, static fields declared in interfaces are accessible through the implementing class, not inherited. When we access B.age in above example in main method, it's not due to inheritance, but rather because interface fields are implicitly public, static, and final. In our case, age is a static field of the A interface, which means it can be accessed using the interface name itself (A.age) or through any class that implements the interface (B.age). So, while it may seem like the field is inherited, it's actually being accessed through the interface. This behavior allows for constants and other shared data to be accessed consistently through the interface, regardless of the implementing class.
@jibonjibon8231
@jibonjibon8231 Жыл бұрын
Your Process of explaining and the step by step developed example is just blowing my minds. Tomorrow is my java final exam. I have regrate that why I didn't follow you from before! Your teaching system is well pre-planed, clear. I have a request, plz don't stop making tutorial. Keep doing by this way of explaining. Need Python ,framework, Algorithm from you.
@thusith-tec307
@thusith-tec307 Жыл бұрын
Today I subscribed you after watching this video. Your explanation and English pronouncing are better than others. I respect you my new Teacher ❤. Love from Sri Lanka
@rapidken
@rapidken Жыл бұрын
Great playlist! There are some other videos in this course playlist that explain the terms used in this one. Feel free to give them a look if you're in need of a quick refresh! - Abstract and Anonymous class: kzbin.info/www/bejne/aorReHWFrqZlh5Y - Static Variable: kzbin.info/www/bejne/bXm8koSFrtuqbbM - Static variable Example: kzbin.info/www/bejne/bXm8koSFrtuqbbM - Heap: kzbin.info/www/bejne/lXiuZIqle6t-i6c - Heap memory: kzbin.info/www/bejne/mYeQpIKmhMyinJo
@ramyapinapothu9901
@ramyapinapothu9901 Жыл бұрын
Amezing explination everyone saying only theory u are the only one following practical manner ur having great explanation
@obaldalmeida6308
@obaldalmeida6308 Жыл бұрын
I have been watching Navin sirs old vedios and found this gem ....good to know you are doing well....looking fresh sir ✨ with an upgrade
@daulitech219
@daulitech219 9 ай бұрын
I read Interface through a book but I couldn't understand it, until I found your video. Thanks
@Arsun-77
@Arsun-77 Ай бұрын
Me videos lo examples tho concept inka baga ardm aythundi anna...❤
@projyoti7489
@projyoti7489 7 ай бұрын
What a type of teaching skills ! Mind-blowing
@mangaraj45
@mangaraj45 6 ай бұрын
That's not my age 💀🌚😅
@mohitx3g
@mohitx3g 13 күн бұрын
Bro's age is 43, and he written 44 😂
@iqbalsingh3848
@iqbalsingh3848 4 ай бұрын
your video just blow my mind.. its crazy ... thanks for a lot of information...
@AmarGrg
@AmarGrg Жыл бұрын
Hi @Telusko thank you very much for all those wonderful videos. Just started learning java and I am already learning alot. Have a quick question for you, while doing PHP we used to write interfaces for the model entity class, what do you think about it? what might be the pros and cons?
@adityasrinivas3069
@adityasrinivas3069 4 ай бұрын
Video #66. and #65 should be interchanged, i.e, explain what is an interface and then explain why it is important. It will be easier to understand.
@Telusko
@Telusko 4 ай бұрын
Thanks for the correction
@rajeshwarijindam-dx3xz
@rajeshwarijindam-dx3xz Жыл бұрын
Anna mi teaching baa super undhi
@raghavsood768
@raghavsood768 Жыл бұрын
Notes: All variables inside interface are static and final
@mohamedmurshid9794
@mohamedmurshid9794 Жыл бұрын
and public by default too. all the methods inside interface are public and abstract.
@mehakfatima6531
@mehakfatima6531 Жыл бұрын
​@@mohamedmurshid9794 well they have to be public so that the abstract methods inside it can be used further in derived classes or the whole point of creating a interface will be nothing
@mohamedmurshid9794
@mohamedmurshid9794 Жыл бұрын
@@mehakfatima6531 yep true. But i just added those are public too. Not only static and final. Thank you for this comment.🤗
@alwinvj6487
@alwinvj6487 Жыл бұрын
Thanks for this video🤗
@VishnuSai-u2e
@VishnuSai-u2e 2 ай бұрын
Without out main() we can i print any statement?
@sriemandi3978
@sriemandi3978 Жыл бұрын
Merry Christmas Naveen bro
@Programing-lo3og
@Programing-lo3og 7 ай бұрын
Thanks You Sir
@adityamishra_11
@adityamishra_11 11 ай бұрын
Are we take scanner (input) at the time of declaring any variables inside the interface.?
@adityamishra_11
@adityamishra_11 11 ай бұрын
@Telusko.
@roshanekka8293
@roshanekka8293 10 ай бұрын
nice explanation
@manas332
@manas332 5 ай бұрын
Excellent explanation
@Hemanth83439
@Hemanth83439 Жыл бұрын
kollada mona 👌
@srimantamondal8769
@srimantamondal8769 Жыл бұрын
Can someone tell me why inside println(), "x:" is used. This variable "x" is not declared anywhere and is not giving any error. Also if it is not a variable then let me know what it is.
@santhosh-benz7
@santhosh-benz7 Жыл бұрын
Here inside the println(), "x:" is used , it is provided by the IDE ( here VS code ) , which means it remains you to code here or pass the parameter , which makes you aware about the line of code . It needs some thing based on the code . I think you can Understand 😅
@shubhrajit2117
@shubhrajit2117 6 ай бұрын
You can disable it by going to settings -> Java hints -> None
@chouaibakni2828
@chouaibakni2828 Ай бұрын
Thanks
@rohitgundam2275
@rohitgundam2275 3 ай бұрын
How is he able to create an object A (since this has the same name as the interface?)
@edgbaston149
@edgbaston149 Жыл бұрын
Thank you so much
@sheikhnasir3437
@sheikhnasir3437 5 ай бұрын
6:13 Funniest part 😂
@Ambitious675
@Ambitious675 Жыл бұрын
Thank you so much sir :)
@Nothingtosaymore
@Nothingtosaymore 7 ай бұрын
Thank you
@filmbuzz9419
@filmbuzz9419 6 ай бұрын
Can i implement another method in class B
@sushmithakn6003
@sushmithakn6003 9 ай бұрын
Why this error come - failed to resolve main method code lens :inter faceis not a valid java identifier
@hirenkansara77
@hirenkansara77 27 күн бұрын
👌👌👌👌👌
@AbuIshaqAlShafii
@AbuIshaqAlShafii 9 ай бұрын
5:12
@TochukwuVictor-qe4xd
@TochukwuVictor-qe4xd 6 ай бұрын
❤❤
@JulieJulie-x6t
@JulieJulie-x6t 4 ай бұрын
🎉❤
@Hawkai-ro2hx
@Hawkai-ro2hx 4 ай бұрын
That's not my age was personal
@abhi._77
@abhi._77 Жыл бұрын
Nipora
#66 Need of Interface in Java
8:32
Telusko
Рет қаралды 157 М.
#61 Abstract Keyword in Java
12:09
Telusko
Рет қаралды 183 М.
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
#53 Packages in Java
12:20
Telusko
Рет қаралды 238 М.
Harsh Truth of Java in 2024! Ft. Ultimate Java Developer @Telusko
28:46
How to make Microservices Communicate?
10:24
YourTechBud Codes
Рет қаралды 42 М.
Interface in Java | Learn Coding
15:09
Learn Coding
Рет қаралды 786 М.
#40 Encapsulation in Java
11:42
Telusko
Рет қаралды 213 М.
#95 Comparator vs Comparable in Java
15:43
Telusko
Рет қаралды 215 М.
Generics In Java - Full Simple Tutorial
17:34
Coding with John
Рет қаралды 1,1 МЛН
#60 Wrapper Class in Java
8:08
Telusko
Рет қаралды 208 М.
#48 What is Inheritance in Java
8:47
Telusko
Рет қаралды 157 М.