Difference between Overloading and Overriding (part-II)

Поділитися
Вставка
  • Опубліковано 23 гру 2024

КОМЕНТАРІ • 82

  • @javaproxy474
    @javaproxy474 7 років тому +22

    I am working as java developer right now ,because of durgasoft videos.

  • @kotresh27
    @kotresh27 8 років тому +7

    Somewhere else I heard that "The best teacher teach from the heart, not from the book" .Durga sir you are one among that.... Keep it up sir

  • @shilpashreehn1005
    @shilpashreehn1005 3 роки тому

    Best of the best JAVA teacher I have seen

  • @divyabharathi7889
    @divyabharathi7889 9 років тому +19

    your teaching was simply superb sir,............ and also soo much clarity was there its really helpful to everyone's...

    • @DURGAEDUCATION
      @DURGAEDUCATION  9 років тому +4

      +DIVYA BHARATHI
      Hello,
      We are very Happy to say Now you can access All DURGA Sir's Core Java with
      OCJP/SCJP Video Sessions. To get Maximum Benefit from these video sessions,
      compulsory you have to write notes also. Sir will dictate each and every point
      clearly.
      Demo Sessions on UA-cam:
      1. Language Fundamentals(16 Videos) ua-cam.com/video/eTXd89t8ngI/v-deo.html
      2. Operators &Assignments(7 Videos) ua-cam.com/video/1JGOPhIyhAM/v-deo.html
      3. Flow Control(6 Videos) ua-cam.com/video/X6rS9vD9-qM/v-deo.html
      4. Exception Handling
      (10 Videos) ua-cam.com/play/PLd3UqWTnYXOnSkaum39zWYI6bPb3i7liz.html
      Please give your valuable feedback and it is very important and helpful
      for us.
      Note:-If you are interested for full version of videos please revert back for
      more information.
      Fee
      : 6000/-
      Duration:
      6-months
      DURGASOFT Online Training Team,
      Mobile : +91-7207 21 24 28
      +91-8885 25
      26 27
      Mail ID : durgasoftonline@gmail.com , durgasoftonlinetraining@gmail.com

    • @jishnusathyan
      @jishnusathyan 8 років тому +2

      +DURGA EDUCATION Sir do u have any tutorials for data structures and algorithms in java...Kindly do reply

  • @kanishkg269
    @kanishkg269 8 років тому +11

    thank you sir
    your marry example for method overriding was superb
    it is fixed in my mind thank you once again...

  • @swastikgrover1602
    @swastikgrover1602 9 років тому +3

    hats off to u sir!!! i really like the way you teach.. you are the best teacher i have ever been taught by

  • @saumyaawasthi2576
    @saumyaawasthi2576 6 років тому +5

    Thank you sir..... Tomorrow is my interview ...

  • @afzalmakbar8905
    @afzalmakbar8905 7 років тому +3

    Ur classes helped a lot! Thank you all for your efforts.

  • @johannadekker8236
    @johannadekker8236 7 років тому +2

    Very helpful explanation! I found it clearer and easier than the explanation offered to me by my university.

  • @memories4683
    @memories4683 8 років тому

    Durga soft forever......excellent lectures by durgateam ...

  • @sanjusanjay6834
    @sanjusanjay6834 7 років тому

    i am grateful to you sir for your great effort to upload all those videos. it is very useful to me thank you sir thank you very much

  • @saisai-fw5zw
    @saisai-fw5zw 2 роки тому

    thank you sir💕💕,very simple to understand your content!!!💖💖

  • @rinkaljain2939
    @rinkaljain2939 8 років тому

    your lectures are very useful for clearing my interview.. thank you sir very much

  • @sangeetakumar3857
    @sangeetakumar3857 7 років тому

    Very well explained with awesome examples ! Thanks !!!

  • @rajeshwari1git
    @rajeshwari1git 7 років тому +1

    Very useful. Thank you Durga Sir

  • @TheRiishii
    @TheRiishii 6 років тому +1

    Great explanation!!

  • @umeshpalav1924
    @umeshpalav1924 9 років тому +2

    Respect for you sir

  • @SandaruwanFonseka
    @SandaruwanFonseka 6 років тому

    Thank you very much sir , your methods are very clear to us

  • @sairamaddepalli1533
    @sairamaddepalli1533 5 років тому

    Tq sir ur examples are simply super

  • @sudhirkk007
    @sudhirkk007 Рік тому

    Very good explanation, you can give left and right to the interviewer 😂😂

  • @reshmdhandore8222
    @reshmdhandore8222 5 років тому

    Very very nice teaching sir..

  • @AhamedKabeer-wn1jb
    @AhamedKabeer-wn1jb 5 років тому

    Sir superb teaching

  • @dhirenpatel3789
    @dhirenpatel3789 9 років тому +1

    Teaching is very very good sir .thank you.

    • @DURGAEDUCATION
      @DURGAEDUCATION  9 років тому

      Hello,
      We are very Happy to say Now you can access All DURGA Sir's
      Core Java with OCJP/SCJP Video Sessions(200 Videos,21 Chapters,200 hours ). To
      get Maximum Benefit from these video sessions, compulsory you have to write
      notes also. Sir will dictate each and every point clearly.
      Demo Sessions on
      UA-cam:
      1.LanguageFundamentals(16Videos) ua-cam.com/video/eTXd89t8ngI/v-deo.html
      2.Operators&Assignments(7Videos) ua-cam.com/video/1JGOPhIyhAM/v-deo.html
      3.FlowControl(6Videos) ua-cam.com/video/X6rS9vD9qM/v-deo.html
      4.ExceptionHandling(10Videos) ua-cam.com/play/PLd3UqWTnYXOnSkaum39zWYI6bPb3i7liz.html
      Please give your valuable feedback and it is very important
      and helpful for us.
      Note:-If you are interested for full version of videos
      please revert back for more information.
      Fee : 6000/-
      Duration: 6-months
      DURGASOFT Online
      Training Team,
      Mobile : +91-8885 25
      26 27, +91-7207 21 24 28
      Mail ID : durgasoftonline@gmail.com ,
      durgasoftonlinetraining@gmail.com

    • @harshawardhanupasani7722
      @harshawardhanupasani7722 8 років тому

      +DURGA EDUCATION pls post the link for these sessions...

  • @Gia_Java
    @Gia_Java 4 роки тому

    such a great explanation!

  • @gopi7500
    @gopi7500 7 років тому

    Superbbb explanation sir

  • @captainudayfop
    @captainudayfop 7 років тому

    thnx mr.durga for teaching me.i know u will not read this but still thnx

  • @amitmalik7804
    @amitmalik7804 6 років тому

    Thanks for clearing the concepts. But I have a question if I define a static method in parent class i.e overhidden for child class but when I define same method with same signature but modifier is not static. It gives compile time error. why?

  • @nalinisree7592
    @nalinisree7592 5 років тому

    Thank you very much sir for your valuable lessons.

  • @VikasJadhavgoogleprofile
    @VikasJadhavgoogleprofile 5 років тому +1

    I want to correct your point 7 i.e Throws Clause.
    1. If the super class method does not declare an exception, subclass overridden method cannot declare the checked exception but it can declare unchecked exception.
    If the super class method declares an exception, subclass overridden method can declare same, subclass exception or no exception but cannot declare parent exception.
    @Please correct me if i am wrong.

    • @anilreddy7372
      @anilreddy7372 5 років тому +1

      That is not class, clause only

    • @srinivasn4723
      @srinivasn4723 3 роки тому

      @@anilreddy7372 that is class only not class whatever he wrote is correct

  • @QA_TestAnalyst
    @QA_TestAnalyst 4 роки тому

    Hello Sir, Getting compiler error on overloading if i changing the order in arguments. But you mention in this video overloading will work if we change argument order also.

  • @jeevag7995
    @jeevag7995 6 років тому +2

    Sir, what is the difference between throw and throws

  • @shubhashrivastava9337
    @shubhashrivastava9337 6 років тому

    eassy to learn..plz upload slenium video also

  • @thanveeraqtharah
    @thanveeraqtharah 6 років тому

    Can you please explain about "Method Hidding" and What is the use of "Method Hiding"?, i.e (where in programming we can use method hinding feature of java?

  • @shanuchandra7156
    @shanuchandra7156 4 роки тому

    Sir in method overloading how method signature must be different method signature means method name and argument type..it is must to have same name of method in overloading concept then why you pointed method signature must be different

  • @ShaliniSingh-pn2yw
    @ShaliniSingh-pn2yw 6 років тому

    Best explanation

  • @abadialnahas9286
    @abadialnahas9286 7 років тому +1

    it is a best lecture for me in java but sir one thing i wish u improve the language : )

  • @shrikantkarki4966
    @shrikantkarki4966 6 років тому

    Superb Sir

  • @pavanvarma2227
    @pavanvarma2227 5 років тому

    return type can change in overriding only for non-primitive return types like object

  • @satyasubhashini7528
    @satyasubhashini7528 5 років тому

    Unchecked exception means sir??

  • @prasadd3917
    @prasadd3917 9 років тому

    no words big big tnx sir.

    • @DURGAEDUCATION
      @DURGAEDUCATION  9 років тому

      +prasad D
      Hello,
      We are very Happy to say Now you can access All DURGA Sir's Core Java with
      OCJP/SCJP Video Sessions. To get Maximum Benefit from these video sessions,
      compulsory you have to write notes also. Sir will dictate each and every point
      clearly.
      Demo Sessions on UA-cam:
      1. Language Fundamentals(16 Videos) ua-cam.com/video/eTXd89t8ngI/v-deo.html
      2. Operators &Assignments(7 Videos) ua-cam.com/video/1JGOPhIyhAM/v-deo.html
      3. Flow Control(6 Videos) ua-cam.com/video/X6rS9vD9-qM/v-deo.html
      4. Exception Handling
      (10 Videos) ua-cam.com/play/PLd3UqWTnYXOnSkaum39zWYI6bPb3i7liz.html
      Please give your valuable feedback and it is very important and helpful
      for us.
      Note:-If you are interested for full version of videos please revert back for
      more information.
      Fee
      : 6000/-
      Duration:
      6-months
      DURGASOFT Online Training Team,
      Mobile : +91-7207 21 24 28
      +91-8885 25
      26 27
      Mail ID : durgasoftonline@gmail.com , durgasoftonlinetraining@gmail.com

  • @amitmalik7804
    @amitmalik7804 8 років тому

    Why Static method can not override? Plz explain.

  • @ukvyas
    @ukvyas 8 років тому +1

    excellent

  • @manojbhimali9494
    @manojbhimali9494 9 років тому

    awasome ,"method hiding but not overloadin "

  • @shivamsaxena5854
    @shivamsaxena5854 4 роки тому

    In point number 5, How could private function be overloaded?
    class parent
    {
    private void f0()
    {
    System.out.print("function without argument");
    }
    }
    class child extends parent
    {
    private void f0(int v0)
    {
    System.out.print("function with argument");
    }
    }
    class C0
    {
    public static void main(String r0[])
    {
    child r1=new child();
    r1.f0();
    }
    }
    As per point number 5, If the private function could be overloaded then the "function without argument" should come as the output of the aforementioned source code.
    But the "compile time error" is coming as the output.
    It means the private function could not be overloaded.
    Please correct me if I am wrong.
    Thank You.

  • @DaBBoSaH
    @DaBBoSaH 10 років тому

    you also can't technically override private methods because they are not inherited... but you can still create the same method signature in the child class...

    • @amitava1973
      @amitava1973 10 років тому

      You are right. But in that case it is not overridden method. It is just two different methods.

    • @DaBBoSaH
      @DaBBoSaH 10 років тому

      my comment is not an objection... it is to clarify something to the viewers who may wonder why :D

  • @poornaps
    @poornaps 4 роки тому

    Thank you sir

  • @rohityadav7646
    @rohityadav7646 9 років тому

    Sir please explain what is co-variant return types
    class abc
    {
    int m,n,x;
    int pok(int a,int b)
    {
    m=a;
    n=b;
    x=m+n;
    return(x);
    }
    }
    class pqr extends abc
    {
    long u,v,w;
    long pok(int a,int b)
    {
    u=a;
    v=b;
    w=u*v;
    return(w);
    }
    }
    class MAIN
    {
    public static void main(String ar[])
    {
    pqr p1=new pqr();
    long l1=p1.pok(10,20);
    System.out.println("MULTIPLICATION IS :"+l1);
    abc a1=new abc();
    int o=a1.pok(10,20);
    System.out.println("SUM IS :"+o);
    }
    }
    int and long/byte/short are co-variant or not?????

  • @siva7573
    @siva7573 6 років тому

    hi ,
    can any one tell me WHAT IS METHOD RESOLUTION?

  • @vamsi7362
    @vamsi7362 Рік тому

    Miru devudu sir

  • @tanveerulislam8396
    @tanveerulislam8396 7 років тому

    very nice

  • @shreyajaiswal3133
    @shreyajaiswal3133 3 роки тому

    Thanku sir

  • @gopalrajmishra
    @gopalrajmishra Рік тому

    Thanks

  • @firojkabir7503
    @firojkabir7503 9 років тому

    nice..........

  • @divyabharathi7889
    @divyabharathi7889 9 років тому

    thank you ...

  • @ikonik6148
    @ikonik6148 10 років тому +1

    Super

    • @DURGAEDUCATION
      @DURGAEDUCATION  9 років тому

      +Khasim Durgam
      Demo Sessions on youtube,
      Language Fundamentals(16 Videos)ua-cam.com/video/eTXd89t8ngI/v-deo.html,
      Operators & Assignments(7 Videos)ua-cam.com/video/1JGOPhIyhAM/v-deo.html,
      Flow Control(6 Videos)ua-cam.com/video/X6rS9vD9-qM/v-deo.html.

  • @sidduteli9892
    @sidduteli9892 7 років тому

    nice sir

  • @veeranjaneyareddyyeruva4748
    @veeranjaneyareddyyeruva4748 7 років тому

    How to program

  • @devashishchoubey1965
    @devashishchoubey1965 5 років тому

    thnx sir

  • @PremDev1122
    @PremDev1122 7 років тому

    Yes Sir, I'll give left and right to interviewer. :D :D :D

  • @sumitjiajuri
    @sumitjiajuri 10 років тому

    Thank you

    • @DURGAEDUCATION
      @DURGAEDUCATION  9 років тому

      +Sumit Ghosh
      Demo Sessions on youtube,
      Language Fundamentals(16 Videos)ua-cam.com/video/eTXd89t8ngI/v-deo.html,
      Operators & Assignments(7 Videos)ua-cam.com/video/1JGOPhIyhAM/v-deo.html,
      Flow Control(6 Videos)ua-cam.com/video/X6rS9vD9-qM/v-deo.html.

  • @sahand5277
    @sahand5277 8 років тому

    i still can't distinguish if the language is hindi or English o_0. though the teaching is pretty good..thanks

  • @kushborikar4021
    @kushborikar4021 6 років тому +3

    Must-A be different!!
    XD XD

  • @akshaysuryawanshi63
    @akshaysuryawanshi63 6 років тому

    If the return type is different but the signature is same, then the compiler will complain

  • @munishkumar7153
    @munishkumar7153 8 років тому

    2nd point is wrong sir its not arguments ...its parameters ...

    • @factzone7355
      @factzone7355 8 років тому

      Munish kumar can you please tell difference between arguments and parameter s

    • @karnveerayush
      @karnveerayush 7 років тому

      I think arguments sounds better

    • @kookoon
      @kookoon 7 років тому +1

      From StackOverflow: A parameter is a variable in a method definition. When a method is called, the arguments are the data you pass into the method's parameters. Parameter is variable in the declaration of function. Argument is the actual value of this variable that gets passed to function.