15.1 Inner Class in Java Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 พ.ย. 2024

ความคิดเห็น • 158

  • @satoshinakamoto171
    @satoshinakamoto171 6 ปีที่แล้ว +25

    one of the most valuable programming channels in youtube . cant thank u enough. i love how he teaches. first the theory then the practical implementations

  • @randy-rndr
    @randy-rndr 5 ปีที่แล้ว +11

    I'm feeling lucky have found this channel,
    thank you very much
    your explanation is just really great and easy to understand

  • @jvsnyc
    @jvsnyc 4 ปีที่แล้ว +1

    In my older Java references, they distinguish between local classes defined inside methods, but having names, from anonymous classes, static inner classes and member classes that are defined outside of any method of the containing class. But I am still watching this, it seems excellent.

  • @socaljusticewarrior558
    @socaljusticewarrior558 2 ปีที่แล้ว

    This really is one of the best compSci channels there is.

  • @chungwm
    @chungwm 4 ปีที่แล้ว

    I learn those features almost 10 years ago for C#, but this tutorial provides crystal clear re-brush of the concept that I don't fully understand all those years.

  • @Zerkoto
    @Zerkoto 5 ปีที่แล้ว +5

    This is a great channel man! You are literally providing top-tier private lessons to everyone who is watching you FOR FREE! You are awesome man! Keep it up :) You are a great teacher.

  • @prashantsteele
    @prashantsteele 4 ปีที่แล้ว

    Naveen Ji, I am a senior person in IT Field would like to thanks for your very easy and simple learning videos of complex topics ...Like lambda code... Thanks Once Again !!!

  • @washimrajaakash6262
    @washimrajaakash6262 7 ปีที่แล้ว

    Your derivation towards the lambda from the simple inner class is praise worthy ....

  • @Aditya-Pathariya
    @Aditya-Pathariya 3 ปีที่แล้ว

    I feel like spamming thanks because you are such a good teacher. Your teaching style is too good and easy to grasp ❤️🙏🏻

  • @arvindg553
    @arvindg553 4 ปีที่แล้ว +1

    This 22 min was the most awesome time for this day for sure
    Awesome explanation
    Thank you bhai

  • @sugandapujagadeesh2601
    @sugandapujagadeesh2601 4 ปีที่แล้ว

    The way you are teaching ..omg really good ..mainly ur language clarity of content , your body language..super sir 👍

  • @gurrapuomprakash9227
    @gurrapuomprakash9227 4 ปีที่แล้ว

    Super explanation sir. I don't understand Why do people dislike a video even if that video(Explanation of the concepts) is the most wonderful.

  • @gangareddygundeti6857
    @gangareddygundeti6857 8 ปีที่แล้ว +1

    Firstly, I like the name of the channel and love your teaching style even more.God Bless You

  • @rahul41189
    @rahul41189 7 ปีที่แล้ว

    Hi Navin sir, your way of explaning the concept is awesom specially for lambda expression in this video. It is well understandable through your tutorials although i am new to java.

  • @codictechsoftwaredeveloper2035
    @codictechsoftwaredeveloper2035 ปีที่แล้ว

    your the best teacher trust me
    i give you a 5 star

  • @SagarSagar-ro3fj
    @SagarSagar-ro3fj 6 ปีที่แล้ว +26

    Sir..kidhar the aap itne saal ..agar jio sim aur aap meri jindagi me 6 saal pehle aate toh aaj mai onsite hota..😂😂

  • @awsmunicorn7488
    @awsmunicorn7488 5 ปีที่แล้ว

    Variables i and j are, by convention, only used for indexing or iterating.
    This was first seen in programming back in the days of FORTRAN, where any variable named from i to n would by default be an integer, as opposed to a float.
    This, in turn, comes from the mathematic convention of indexing varibles with the letters i, j, k, and so on. Especially when doing summation.

  • @sukritakhauri648
    @sukritakhauri648 3 ปีที่แล้ว +1

    Excellent Explanation, Just one word "Awesome"

  • @salmananjum-thestoryteller1515
    @salmananjum-thestoryteller1515 7 ปีที่แล้ว +6

    I've paused the VIDEO @13:05 just to appreciate your metaphor "Creating a Class and then Creating the object is Invention".
    I couldn't stop my self saying "waah Sir"
    (KUDOS in English) :)

  • @abhishekchahuan241
    @abhishekchahuan241 6 ปีที่แล้ว

    Sir your way of explanation is too good please keep posting other tutorial for Java as I am a beginner

  • @AbhayBagoriyahacker
    @AbhayBagoriyahacker 4 ปีที่แล้ว

    This man is a legend :) thanks for this tutorial

  • @Thrilledcontrol
    @Thrilledcontrol 7 ปีที่แล้ว

    You are an extremely good teacher! Thank you for simplifying this for me!

  • @tanujamasand9913
    @tanujamasand9913 4 ปีที่แล้ว

    Wonderful videos, sir. You make Java programming so much more interesting!

  • @sheidaj962
    @sheidaj962 6 ปีที่แล้ว +2

    Awesome, no one can explain better

    • @nikitaedell
      @nikitaedell 2 ปีที่แล้ว

      Literally, cant find a better explanation.

  • @soclh6638
    @soclh6638 6 ปีที่แล้ว

    King of Java, thank you Sir

  • @mugi1726
    @mugi1726 8 ปีที่แล้ว +2

    my mind blown when you reveal anonymous inner class. i never know that thing exist before lol

  • @abdurrehman6203
    @abdurrehman6203 4 ปีที่แล้ว

    Amazing...
    i am from Pakistan and i follow u from very long term... u r the great teacher
    and Please also make some videos on Dart language

  • @harleyswift5737
    @harleyswift5737 7 ปีที่แล้ว +85

    did he say "Welcome back, aliens"?

    • @satadhi
      @satadhi 7 ปีที่แล้ว +2

      i heard it

    • @yognirog
      @yognirog 7 ปีที่แล้ว

      haha, i too

    • @sherothkar5809
      @sherothkar5809 6 ปีที่แล้ว +6

      he says that. He will see each coder as alien's that y he calls like that..

    • @JR-xm4mh
      @JR-xm4mh 6 ปีที่แล้ว +1

      Harley Swift yes

    • @shivamkumar-qs7er
      @shivamkumar-qs7er 5 ปีที่แล้ว +4

      He likes alien word and assume us all as variable or object notifier !

  • @vikrantthakur3992
    @vikrantthakur3992 3 ปีที่แล้ว +1

    Thank you so much sir for such a good explanation.🔥🔥🔥 ✨❤️

  • @shehruzkhan3413
    @shehruzkhan3413 5 ปีที่แล้ว

    Really good video, thanks for helping me study for my test tomorrow

  • @nikeshsingh4787
    @nikeshsingh4787 4 ปีที่แล้ว

    I am an alien, I always had my doubts but this guy said it and now I am sure I am an ALIEN!! I am stuck on earth with humans. I am learning java so that I can program my spaceship and be a free soul to roam this universe!!

  • @hiteshpachakawade6428
    @hiteshpachakawade6428 5 ปีที่แล้ว

    You are God🙏🙏
    Thank you so much for such a Phenomenal knowledge😊

  • @egs_testegs_test9701
    @egs_testegs_test9701 5 ปีที่แล้ว

    Thank you, everything is excellent as usual. But can we use lambda way to cal method from inner class and not to implement interface?

  • @jayanthv5867
    @jayanthv5867 2 ปีที่แล้ว

    thank you for the excellent demonstration of inner classes!

  • @karthikgolagani6844
    @karthikgolagani6844 8 ปีที่แล้ว +5

    lamba expressions were adopted from scala.

  • @fithawighide6589
    @fithawighide6589 5 ปีที่แล้ว +1

    How a wonderful explanation! Appreciate

  • @surajkumbhar7863
    @surajkumbhar7863 4 ปีที่แล้ว

    What a man salute bhaiya 🙌🙌🙌

  • @amardhillon314
    @amardhillon314 7 ปีที่แล้ว +1

    thanks so very much for making this video ... keep up the good work bro..

  • @truptigandhi891
    @truptigandhi891 4 ปีที่แล้ว

    You are just awesome sir....👌👌👌

  • @abhijittambe5037
    @abhijittambe5037 5 ปีที่แล้ว

    Best explanation for lambdas

  • @fathiyaadel9409
    @fathiyaadel9409 7 ปีที่แล้ว

    we always trust you navin

  • @rebhuroy3713
    @rebhuroy3713 8 ปีที่แล้ว

    your theory session is clear to me, but when i am going to run this its not works some kinds of errors i am facing

  • @ReyPeon
    @ReyPeon 7 ปีที่แล้ว

    Thanks for the videos, they have helped me a lot!

  • @anuragverma9519
    @anuragverma9519 4 ปีที่แล้ว

    Make a video on concurrenthashmap Internal Implememntation....Navin Reddy

    • @muralinaiduseema6155
      @muralinaiduseema6155 4 ปีที่แล้ว

      Better to see the collections concept in " Durga soft " TH-cam channel

  • @divyeshkumarbalar7732
    @divyeshkumarbalar7732 5 ปีที่แล้ว

    You are the best....................

  • @naturemania1547
    @naturemania1547 6 ปีที่แล้ว

    In which case, we use inner class concept ?? Sir explain any senerio in which we create inner class...

  • @ayushsingh1726
    @ayushsingh1726 5 ปีที่แล้ว +1

    sir, if we extend outer class in any class(take it as A) how to access inner class data members with the help of A class object??

  • @parleneha25
    @parleneha25 3 ปีที่แล้ว

    Thank you so much for this tutorial sir.

  • @shivammehta9661
    @shivammehta9661 2 ปีที่แล้ว

    Awesome Explanation

  • @aamirnabeelkhan4049
    @aamirnabeelkhan4049 4 ปีที่แล้ว

    Found it very helpful!!!

  • @ZakirHossain-pz4pd
    @ZakirHossain-pz4pd 4 ปีที่แล้ว

    Really like the dinosaur analogy!

  • @ashutoshmishra8753
    @ashutoshmishra8753 8 ปีที่แล้ว

    Suppose there is another method in Phone interface, shall we need to give implementation for that method too?, during writing anonymous inner class code.

  • @maoravitan88
    @maoravitan88 8 ปีที่แล้ว

    very clear and helpful! thanks

  • @universalstarcreations7297
    @universalstarcreations7297 3 ปีที่แล้ว

    What if there are two methods in interface?
    How can we implement the method by using lambda expression?

  • @PraveenKumar-rf7vj
    @PraveenKumar-rf7vj 2 ปีที่แล้ว

    What if we want to implement multiple methods of interface. How can we use lambda expression for that

  • @gurpreetsingh-mz4cs
    @gurpreetsingh-mz4cs 5 ปีที่แล้ว

    wonderfull video
    majja a gya

  • @narayanaraojampani6066
    @narayanaraojampani6066 5 ปีที่แล้ว +1

    why do we need inner classes?

  • @tareqislam8644
    @tareqislam8644 5 ปีที่แล้ว +1

    Hello sir. If the interface has more than one abstract method can I convert the implementation into lamda expression?

    • @minatimahapatra4182
      @minatimahapatra4182 5 ปีที่แล้ว

      i have the same doubt

    • @Bugkiller23
      @Bugkiller23 5 ปีที่แล้ว

      @@minatimahapatra4182 Lambda expression provides implementation of functional interface. An interface which has only one abstract method is called functional interface.

  • @sowndharyalakshmi6124
    @sowndharyalakshmi6124 6 ปีที่แล้ว

    you have used lambda expression in an interface with single method.. but what happens when we have multiple methods in an interface.. how does the JVM undetstand that this line of code is used for specific method?

  • @Marinakulichok
    @Marinakulichok 8 ปีที่แล้ว

    finally I got it!! Thanks a lot

  • @saadmakhal114
    @saadmakhal114 7 ปีที่แล้ว

    It's very very fantastic..

  • @vatikaprasad
    @vatikaprasad 7 ปีที่แล้ว

    you are amazing at explaining

  • @pradeepgodavarthi8313
    @pradeepgodavarthi8313 7 ปีที่แล้ว +2

    so can we acces variables of inner instance class ? my sir says its not possible :/ but i checked and it works

    • @kiranlalkg6874
      @kiranlalkg6874 7 ปีที่แล้ว

      i too have the same doubt

    • @sophiabnrm8730
      @sophiabnrm8730 7 ปีที่แล้ว

      sure we can, he navin should us how it works?!

    • @B6862
      @B6862 6 ปีที่แล้ว

      if you don't specific access modifier's than you can my sir says its not possible >>> it depends how create an inner class
      if they are accessible to other class..

  • @khalidalanazi5258
    @khalidalanazi5258 7 ปีที่แล้ว

    Very clear thank you so much man

  • @ibrahimshaikh3642
    @ibrahimshaikh3642 5 ปีที่แล้ว

    Very nice video of inner class

  • @kushwanthkapa2041
    @kushwanthkapa2041 6 ปีที่แล้ว +2

    non static nested class are called inner class

  • @robertaaron3619
    @robertaaron3619 6 ปีที่แล้ว

    what if there are more than one functions in the interface ? we cannot do the same implementation in the object declaration statement ? please clarify

  • @harinimurali8724
    @harinimurali8724 2 ปีที่แล้ว

    How to instantiate static class object outside the package when the scope is default?

  • @vaibhavjain4231
    @vaibhavjain4231 6 ปีที่แล้ว

    is staic class follow object oriented programing

  • @bhushankulkarni1262
    @bhushankulkarni1262 5 ปีที่แล้ว

    What if we have two methods in interface??Then we cannot use lymbda expression?

  • @anushaanu8730
    @anushaanu8730 6 ปีที่แล้ว

    Sir may in interface contain more than one method then who we use lamda ?????

  • @asishankam6552
    @asishankam6552 3 ปีที่แล้ว

    Your doing great

  • @OwaisKhan-wy8dv
    @OwaisKhan-wy8dv 4 ปีที่แล้ว

    great video. god bless.

  • @aishwaryagoel149
    @aishwaryagoel149 8 ปีที่แล้ว

    Suppose we have more than one method i interface then how will we define those methods using lambda expression.How will it identify which method's body we have provided..?

    • @hammadkhan2536
      @hammadkhan2536 7 ปีที่แล้ว

      Functional interface has only one undefine method.
      more then one undefine method is still not valid in java8.

  • @shahnawaz-347
    @shahnawaz-347 4 ปีที่แล้ว

    nice teaching method

  • @mechaadi
    @mechaadi 7 ปีที่แล้ว

    Ok..tell me please, we know that static variables are accessed with the class name right?
    then,
    public class Other {
    public static class sother{
    public static int i = 60;
    }
    }
    public class Main {
    public static void main(String[] args)throws IOException{
    Other obj = new Other();
    Other.sother ob = new Other.sother();
    System.out.println(sother.i);
    }
    }
    What is the concept behind it, m confused, hlp me out.

  • @meenalsolanki9286
    @meenalsolanki9286 4 ปีที่แล้ว

    sir how to write Lambda expression if in interface there are more than one classes are declared ?

  • @NeerajKumar-ri3vk
    @NeerajKumar-ri3vk 4 ปีที่แล้ว

    Weird is his one of the favourite words.

    • @Telusko
      @Telusko  4 ปีที่แล้ว

      I know that’s weird 😬

  • @srikardevarakonda2933
    @srikardevarakonda2933 4 ปีที่แล้ว

    How to access static variable within static inner class??

  • @satyamstudytech
    @satyamstudytech 5 ปีที่แล้ว

    Sir,if that interface contains two methods then in main method to implement those abstract methods use the method names or not because two methods how can distinguished please tell me either having more than one method you need method I think

    • @satyamstudytech
      @satyamstudytech 5 ปีที่แล้ว

      That means which code belongs to which method, you have to specify that ...

  • @harshitsharma3226
    @harshitsharma3226 6 ปีที่แล้ว

    Hello Sir, Since class B is also static. Why we need to create the instance of B also?Why can't we access variable j using B class name? Can you explain? For example A.B.j =5;

    • @mahadevjanawade
      @mahadevjanawade 5 ปีที่แล้ว

      No, Since the inner class variable j is a instance variable, we have to create object to access that variable. If j was static, then A.B.j = 5 works.

  • @ytg6663
    @ytg6663 6 ปีที่แล้ว

    While watching java videos on my phone why it rotates 360° ?

  • @johnsonganagoni8161
    @johnsonganagoni8161 6 ปีที่แล้ว

    Can't we access member inner class variables without having variables in outer class?

  • @ajayhajare6917
    @ajayhajare6917 3 ปีที่แล้ว

    If it's static class so how can you create it's object?

  • @B6862
    @B6862 6 ปีที่แล้ว

    hey hi sir do you have courses in udmey

  • @varunaggarwal1995
    @varunaggarwal1995 8 ปีที่แล้ว +1

    I want to know does static inner classes are also loaded in computer's memory at the same time a normal static class would or it behaves differently.

  • @vivekmunna
    @vivekmunna 7 ปีที่แล้ว

    excellent sir👍

  • @femaledeer
    @femaledeer 4 ปีที่แล้ว

    I think the Lamda example is confusing because you didn't actually show how to call the lambda function, p.show().

  • @PrakashVl
    @PrakashVl 8 ปีที่แล้ว

    Thanks for making this video :)

  • @saifsultan8206
    @saifsultan8206 6 ปีที่แล้ว

    what if interface has multiple methods??

  • @monikaparashar6674
    @monikaparashar6674 6 ปีที่แล้ว

    class A
    {
    Integer a=150;
    Integer b=150;
    Syso(a==b);
    Integer c=50;
    Integer d=50;
    Syso(c==d);
    }
    //output=false
    true
    plz give me the answer why a==b false

  • @merealfaazmeripehchaan1479
    @merealfaazmeripehchaan1479 6 ปีที่แล้ว

    wonderful things learn today....thank U so much aliens. ;)

  • @jielyu4943
    @jielyu4943 6 ปีที่แล้ว

    great video sir

  • @anwarhussain-rl3ni
    @anwarhussain-rl3ni 6 ปีที่แล้ว

    What if the phone interface has more than one function, then in lambda expression how we know which function is calling.

    • @milaanvigraham8664
      @milaanvigraham8664 5 ปีที่แล้ว

      He forgot to mention. It must have only one method, otherwise you can't use lambda to instantiate the object

  • @meghamehta7782
    @meghamehta7782 6 ปีที่แล้ว

    Sir!!!!!!What is method local inner class????

  • @hemantsood9579
    @hemantsood9579 7 ปีที่แล้ว

    Sir what happen if two or more methods are there in phone interface ,then can we use lamda expression????

    • @hemantsood9579
      @hemantsood9579 7 ปีที่แล้ว

      Telusko Learnings So sir it is only for that interface which having only one method ?

  • @austinsehgal8683
    @austinsehgal8683 7 ปีที่แล้ว

    How do I create an Inner Class of a class with the same name?

  • @pavan9558
    @pavan9558 6 ปีที่แล้ว

    Simply good

  • @sachinbhalla14
    @sachinbhalla14 4 ปีที่แล้ว

    sir what happened if interface contains more then one method then how to redefine one particular method with Lemda Expression ??

    • @jmpclicks
      @jmpclicks 4 ปีที่แล้ว

      Lambda expressions are valid only for functional interface(Which means one abstract method), not for multiple methods. You can add a default method in interface though which will have its implementation.

    • @sachinbhalla14
      @sachinbhalla14 4 ปีที่แล้ว

      @@jmpclicks Thanks Brother

  • @vedantyadav9539
    @vedantyadav9539 2 ปีที่แล้ว

    the content for I pay the internet bill♥