If you’re new to programming but want a career in tech, I HIGHLY RECOMMEND applying to one of Springboard’s online coding bootcamps (use code ALEXLEE for $1,000 off): bit.ly/3HX970h
@xzenkaidragon96648 ай бұрын
:skull:
@xzenkaidragon96648 ай бұрын
💀
@xzenkaidragon96648 ай бұрын
nahhhh
@frilledlizardz3 ай бұрын
@@xzenkaidragon9664what
@xdragonflame65635 жыл бұрын
You are literally the only youtuber that I understand in the subject of Java. College professors are very vague and don't teach well. I am sure you will become a big channel someday. Thank you for helping me and thousands of other people learn java.
@alexlorenlee5 жыл бұрын
xDragonFlame thanks for the kind words :) you’re welcome!!
@jamesbrooks93214 жыл бұрын
I don’t know why it’s so hard to find more java instructors, there are plenty of good JavaScript and php videos but when it comes to java no one is doing this
@leif10754 жыл бұрын
@@alexlorenlee Cam you just add the interface with some code so that you don't have to add each method manually one by one like you had to with fill and pour out?
@simiiv50214 жыл бұрын
Exactly what I was gonna comment. Alex, you are amazing!
@TheKittu293 жыл бұрын
Actually every method in Interface is public and abstract. Abstract methods does not contain method body. We need to implement the abstract methods by using child classes. Here InterfaceExample is the child class of waterBottleInterface(interface).
@asleyeizmendiz3314 жыл бұрын
I would love that you would have said : All methods in an interface are abstract. All methods in an interface are automatically public. The keyword public does not appear. Interfaces do not have instance variables because no objects of the interface type can be created! Any variables declared in an interface are automatically public, static, and final (i.e. constants). For that reason, these keywords should not appear in the declaration. for example.
@NuanDaa2 жыл бұрын
Good details. Thanks.
@knanzeynalov71332 жыл бұрын
thanks for additional information.
@howled08 ай бұрын
very late but thanks for adding this :)
@HugoCornellier4 жыл бұрын
Your videos are the best Java videos on KZbin, thank you so much!
@JewelFornillas4 жыл бұрын
I agree!
@Qwertyiopljgrd2 жыл бұрын
im not agree
@NuanDaa2 жыл бұрын
@@Qwertyiopljgrd I am not agree too
@shadowfortuna13817 ай бұрын
@@NuanDaa, so tell who is better
@shadowfortuna13817 ай бұрын
@@Qwertyiopljgrd, so tell me who is better?
@latedeveloper78363 жыл бұрын
0:56 Definition of an interface (an outline for a class) and implementation 2:10 Outline of what the example interface can do (attributes) 2:30 Implementing the interface 3:15 Implementing the example method from the interface (fillUp) 4:12 Use an interface when you want to use an example outline/template of a class that you don't need/want to create 5:20 What happens when we implement an interface
@turuus52152 жыл бұрын
IMO, "Alex Lee" and "Coding with John" are the best 2 channels for Java learners. They teach infinitely better than most college professors.
@deziqn-_-beasto7204 жыл бұрын
Thank you sir. My professor was rambling for 45 minutes and couldn’t explain what you explained in 6 minutes
@jamesmonto95623 жыл бұрын
Best teachers will be online. Just wait. The future will pave the way. I can’t wait for the school system to break down and we get into real learning. Sovereign individual will come.
@CookieCutVids3 жыл бұрын
@@jamesmonto9562 amen brother
@blitzbladerr90354 жыл бұрын
It all clicked when you said an interface it more of a guideline or template. It is not necessary but more useful for setting up a new class that 'inherits' variables and needs these methods defined in its own class. Thank you
@aimannajah31655 жыл бұрын
Man you are the GOAT! Thank you so much for your help!!!!!! You really make everything far more clear and simpler than I thought it was
@clareadwards13182 жыл бұрын
You know what I really appreciate is that sometimes I feel really dumb for not understanding things from the beginning and when you said you had no idea why interfaces were used till after college it kinda gave me a little support.Thank you for this channel and your content Alex
@bhargavmehta973 жыл бұрын
You explain much better than the books and other people on the channel. Short & straight to the point.
@ahrarcorson64525 жыл бұрын
Perfect! missed my lecture about this, you covered it in less than 10 mins for me to understand, appreciate the help man!
@dmbelafan3 жыл бұрын
Just echoing the rest of the comment section, but as a complete java novice, the interface concept was the first rudimentary concept that just didn't immediately click for me. Wasted far too long trying to figure it out on my own, thank you so much for this video. Clear, quick, and well delivered. Excuse me while I watch all your other content. =)
@RippedMoFuCk3 жыл бұрын
Many smart students who feel like abused by their terrible teachers come here and have found you, myself included. And thank you for existing. It's great having a place where you know the comments is filled of like minded people going through exactly what you are, and a teacher who knows how bad teachers generally are at teaching strangely simple but over-complicated concepts.
@so90324 жыл бұрын
I tried to learn Java with many different videos and had hard time understanding it. You explain everything so easy! I learned so much from you. Thank you so much
@mohamedelkhallifi191010 ай бұрын
Welcome back! I've been following you since 2021, and I have to admit, hearing that you were taking a break from making new Java videos made me a bit sad. However, seeing you back in action now brings so much joy! I absolutely love your videos and the way you effortlessly explain complex concepts. I appreciate your content.
@kevinadrianperaza31795 жыл бұрын
Keep it up with the good work man, you are a college savior, really enjoy your content
@westernpigeon2 жыл бұрын
i know im late but dude your videos are awesome. I'm learning Java at my bootcamp and I've watched like 6 of your videos and they all helped tremendously! everytime im watching your videos it feels like a close friend is explaining these topics to me lol thank you!!!
@veer7005 Жыл бұрын
Thanks for keeping these videos up, mid term in a few hours and I've been going over your videos since last night. Thank you.
@Uzairajmal052 жыл бұрын
You are literally the only youtuber that I understand in the subject of Java
@ebodshojaei4967 Жыл бұрын
You did an excellent job explaining. “An interface is an outline of a class”. Easy to remember. Thanks!
@ChunkySalsa_BSU3 жыл бұрын
Love this! No extra stuff, just straight to the point! Thank you.
@Ap-fl2zi5 жыл бұрын
Thank you! Definitely needed a refresher on this! I have my first interview next week
@alexlorenlee5 жыл бұрын
Good luck :)
@suren123a5 жыл бұрын
Good luck!
@adriancaballero38892 жыл бұрын
Thank you! Your videos are the best Java videos on youtube
@anapeo4 жыл бұрын
I'm taking AP Comp Sci right now and your videos really do help. Thank you!
@krishshah39742 жыл бұрын
same
@Rayshaun15193 жыл бұрын
I only watch your videos. You've helped me with a lot of my assignments. Thank you so much, Alex!
@mysteriousunknown5864 жыл бұрын
Idk man. The word "interface" sounds pretty cool to me. For some reason it reminds me of the future.
@darkthornplays24143 жыл бұрын
"I'll create a GUI INTERFACE in Visual Basic to see if I can track an IP address"
@farnachause50713 жыл бұрын
To be reminded of the future is a little paradox, isnt it?
@jamikemichelohia26153 жыл бұрын
When it comes to Python, I KZbin whatever i want to learn, that are bit complex and it pops up. But for Java not the case, rare videos on youtube. Thank god i found this guy
@abdeselamselami45324 жыл бұрын
Thanks a lot Alex, for everyone the short-cut of System.out.println() is type sysout + hit buttons ctrl+space.
@bonniesitessolutions77284 жыл бұрын
but probably only in the IDE he uses...
@cyberstonks4 жыл бұрын
"Syso" + CTRL + Space does the job as well.
@haritharajeev71083 жыл бұрын
Honestly,thank you sooo much......you are just saving my life in each video you make ...soooooooo😂😂do what u do ❤️❤️❤️❤️❤️
@ronakpatil13 жыл бұрын
This is some real content bruhhh I was not able to understand this topic until this video Thanks.
@ankitwakulkar50353 жыл бұрын
Your video is more helpfull to me.... U told in very easy way how to create Interface...keep doing your work
@ayshafarheen49924 жыл бұрын
literally the number one person I come to for java and for good reason. Thank you :')
@asimenibhavya64234 жыл бұрын
I feel lucky to end up here and brushing up my Java knowledge (Y) Thank you :)
@karimnabilsi37874 жыл бұрын
Thank you so much, Alex, you are a great person to come back to when not understanding things about coding, although you can dive deeper into these things in other videos, I am still thankful that you are here to help. I hope one day you become a well-known channel that many people come for help to.
@Luckyme85564 жыл бұрын
What this guy does is unbelievable...He makes things too easy to be true
@aliciagates19574 жыл бұрын
Alex thank you so much for all the wonderful videos you have helped me so much on topics that I only halfway understand. After watching your videos I always feel like a more confident beginning coder
@stone_pilot4 жыл бұрын
Thank you so much. You make learning Java so painless and even fun. I dread reading boring and horrible explanations, and yours are nothing of the sort! It makes my time feel worthwhile.
@peppermintdior4 жыл бұрын
You make the best Java videos, never stop making them..♥
@dsdesai20003 жыл бұрын
Great Video Just some suggestions for better understanding Keep the main class and main method as it is. create one interface and another class that implements it Use a real example: Eg: The interface is a calculator and class that is implements the operations for a calculator. Great Video :)
@thomasz46843 жыл бұрын
Alex you are getting me through this degree, glad I dont have to resort to cheating and I can rely on you!
@TheGbossTV4 жыл бұрын
Thanks you so much man I appreciate it. In college (I live in Portugal) my teacher is spanish and doesn’t speak portuguese so I can’t understand jack shit of what he’s saying. Thank god you exist
@brabbelback27574 жыл бұрын
Your keyboard sounds unbelievably satisfying!!! What is it?
@omemester69854 жыл бұрын
Probably a red or brown switch mechanical keyboard.
@Xx_EL_xX4 жыл бұрын
Sorry to disagree with you. It’s definitely not a brown switch of any kind, nor do I think it’s mechanical. The soft thumpy sound is a short travel distance membrane key. Likely to be the MacBook keyboard. Could be completely wrong. Fish around his videos to see if he has any camera angle of his typing. Edit: kzbin.info/www/bejne/gKDTp3mKbdWpY7c Topre, damn was I wrong hahah
@spicynoodles33173 жыл бұрын
Thanks Alex! I'll be sitting for my Java certification test at the end of the summer and your videos are helping a lot!
@postnubilaphoebus964 жыл бұрын
Although that's certainly a good explanation, I would have like if you also explained the reason behind interfaces. That is, why do we need interfaces when we have abstract classes?
@nickpawsey3 жыл бұрын
Check out this article if you are still wondering: www.tutorialspoint.com/when-to-use-an-abstract-class-and-when-to-use-an-interface-in-java
@mohammedfalih87134 жыл бұрын
You are awesome.. keep up the good work ❤❤🔥🔥🤟🤟
@Hero007ization2 жыл бұрын
Thanks Alex, All the way from Patna, India.
@unagi42543 жыл бұрын
your tutorials SAVED ME!! I appreciate you so much thank you!
@sweekarbhattarai88383 жыл бұрын
When he said, "For firve years I had no idea what Interfaces were...."; I was like: Thank God, I am not late! xD
@iwatchedthevideo71155 жыл бұрын
Great videos and explanations! I'm learning 10x times more than in my classes at school. Keep up the good work!
@professord.dragon35913 жыл бұрын
You feel like you are at my level and 1000 levels above my level, at the same time. It's comforting actually.😂😂
@josureamunyelan88582 жыл бұрын
Keep up Mr Alex, your videos are really improving my programming knowledge,,,,
@darthpongo54572 жыл бұрын
Wow thank you man this is so easy to follow
@jafar_u4 жыл бұрын
You are just awesome, seriously. When I have to submit new task, I always check your videos for particular theme. I like how you go straight to the business without talking a lot about the theory. Thanks a lot! Subscirbed immediately!))
@parijatbandyopadhyay80572 жыл бұрын
Man you are awesome :) super clear explanation. Thanks
@lexclock4 жыл бұрын
man I love ur videos u explain everything so clear and concise...I hate when there is a 20 min video with bla bla bla.... Greetings ¡
@Vishalpawar_964 жыл бұрын
You have insightly explained Alex....I got it understood very well...nice try.
@andreaw7787 Жыл бұрын
Thank you for clearing this up, you videos are always so easy to follow keeping explanations simple and relatable.Cheers!
@siddhigupta40444 жыл бұрын
Lee, you're amazing!! Get back on your channel RIGHT NOWW!
@jingzhao89124 жыл бұрын
Thank you very much. you make everything easier ...
@tntdogs69104 жыл бұрын
Difference between Abstract classes and Interfaces? What happens if I use an abstract class and dont implement a method, or how can I go about implementing it's default value
@prajilm46174 жыл бұрын
Interface is nothing but a fully abstract class (abstract class in which all methods are abstract). whereas a partial abstract class is one in which some of the methods are abstract and some are concrete (have implementations). Java has a rule that a class can extend only one abstract class but a class can implement more than one interface. This can be used to simulate MULTIPLE INHERITANCE in java. Answering your second question, Subclassess which extends an abstract class must implement all the abstract methods. Otherwise, they should be made abstract as well.
@muhammadhassan63642 жыл бұрын
bruh light mode !! nice tutorial 💖💖
@vincent74875 жыл бұрын
I was so confused about interfaces. It's basically a fancy term for a blueprint, just like a class is a blueprint for an object.
@rukna37755 жыл бұрын
Class is blueprint for an object.
@kwsrchoudhury3 жыл бұрын
I was looking for a simple example and explanation on this and it helped so much! thanks!
@hamidarenabdi96114 жыл бұрын
I appreciate you. Your videos are great, simple and useful.
@ivosrbakoski11514 жыл бұрын
Awesome explanation , easy to follow and understand. You can grow with educational videos, because ppl can understand you well.
@gingertrilogy3663 жыл бұрын
Great Video Alex!
@pendago84842 жыл бұрын
Did I say thanx for your vids? So helpfull!
@varadaraajjv49734 жыл бұрын
Your videos are nice...excellent...thanks for the help
@Rachel-hi3yv4 жыл бұрын
Thank you so much Alex!! You are a fantastic teacher.
@GusLapchatiy3 жыл бұрын
5:49 that is what "I" in SOLID for. Interface segretation. You must tend to make more specialized versions of interfaces because implementing all the methods can be cumbersome. But you can use interface inheritance to combine interfaces if you need, and, in this case, you have specialized interfaces and combined ones as well.
@mohammedroshan56473 жыл бұрын
it would be better to explain why concept of interfact exists in first place. Most of the folks explain how to do it .
@tanishpanjwani31172 жыл бұрын
Thank you very much. It was extremely helpful.
@K.E.N.J.I.B.A.B.Y3 жыл бұрын
Great job explaining that!
@valsant45 жыл бұрын
so helpful, thank you Alex ! :)
@AMANMUJAWAR-sq6qv2 жыл бұрын
Thank_u_Brother you made my concept easy keep growing😀😀😀😀😀😀
@sergiocastellani98232 жыл бұрын
well...i think u did it really good bro..
@faiza.s65093 жыл бұрын
Cheers! Thanks for your amazing videos!
@aquilhall2624 жыл бұрын
Can you do a tutorial on marker interfaces? I've never encountered anything so abstract!
@الإسلامدينالحق-خ5ت2 жыл бұрын
as a beginning to know the purpose of your existence in this life.👇 .My friends, search for your life purpose, why are we here?? I advise you to watch this series kzbin.info/aero/PLPqH38Ki1fy3EB-8xmShVqpbQw99Do2B-
@yaboialiisg3 жыл бұрын
super helpful Alex, thank you a ton!
@ilejovcevski794 жыл бұрын
Please make a video about the use of interfaces when solving the inheritance problem in java. I think it's what they are used for the most.
@eleynar.72493 жыл бұрын
Wow thank you!!! You explained it so well 🥰🥰
@torkkk38303 жыл бұрын
Aag Laga di 🔥🔥🔥🔥🔥
@g194g4 жыл бұрын
Grateful for this vid!
@lazymacs28234 жыл бұрын
You just explained how to use it but not why and when to use it. I'm still confuse.
@ilejovcevski794 жыл бұрын
It's mostly used for solving the multiple inheritance problem in java. I hope he makes a video about it. If new to java, the inheritance problem is that each class in java can have only one parent (master class). So in example, a dog-class is a sub-class of an animal class. So we declare it as dog extends animal. Now out dog has all the properties and methods that the animal class has. But what if we want to treat our dog as something else at the same time? Say, a pet? Then we write a pet interface. And now we declare our dog as dog extends animal implements pet. Now our dog can have methods and variables from both the animal class and the pet interface.
@DudeimproS4 жыл бұрын
@@ilejovcevski79 great explanation thank you
@ilejovcevski794 жыл бұрын
@@DudeimproS a pleasure mate!
@DestraGhosts4 жыл бұрын
@@ilejovcevski79 School gave me 144PowerPoint slides, and i still had no clue. But this explanantion... damn thanks dude !
@ilejovcevski794 жыл бұрын
@@DestraGhosts glad to have been of help mate!
@benitaezeoke1568 Жыл бұрын
why did you stop creating java content !!!! been looking for you. i need your video on MAP, ARRAYLIST,LINKEDLIST,HASHSET, your videos have been life saver for me
@vincentbernhart-straberger26333 жыл бұрын
thank you man the video helped me alot
@Amranwen3 жыл бұрын
Thank you so much for all your videos! You really help me with learning :D
@galsteinberg80102 жыл бұрын
extremly helpfull. much appriciated
@creychan23334 жыл бұрын
Thank you so much sirrr, it really helps me a lot 😭
@joshualippss4 жыл бұрын
I know how to do it now, but i dont know for what...great!
@dharmalingeswarparasa16092 жыл бұрын
With multiple inheritance, if multiple parent classes have the same method name and their own implementation, it doesn't know which one to execute leading to ambiguity. To solve this problem, interface comes to the rescue. So, with interface, you can implement multiple interfaces to a class but the rule is to define the implementation in the current class not in the interfaces. Correct me if I'm wrong.
@Amorhally Жыл бұрын
YOU DID AMAZING! WELL SAID
@teosurch2 ай бұрын
Thank you, finally get it!
@unchatmagnifique4 жыл бұрын
Hi, interesting and understated topic. Please upload a new video explaining Interfaces and Polymorphism which is the real purpose of interfaces. e.g. instead of referencing straight to the class to be able to reference to the interface.
@gaigerharr69804 жыл бұрын
it took me 3:49 minute to understand interface thank you.
@siddhigupta40444 жыл бұрын
Hi, Could you please make a video on path and classpath?
@caitlincooper02 жыл бұрын
You're a hero
@LucasAmonatiKhingKliemczak4 жыл бұрын
I saw somewhere that Interface is used to work with multiple inheritance because C++ supports multiple inheritance with classes, but java don't. Then to solve this problem, Java uses Interface. I am still trying to understand it. I hope to see something more detailed later in this chanel.
@drakesadosky6203 Жыл бұрын
Is it right to think of the interface as "This is what this type of object does"? The methods are listed, but left blank because each instance of the object (each time we implement the interface) may perform each method a little differently. A tea Cup may pour differently than a measuring cup. However both are Implementing the Cup interface and using the methods their own unique way.