8.11 What is Super Keyword in Java Part 1

Posted By on May 4, 2019

Posted by Lewis Heart

This article has 29 comments

  1. In java, when we create object that particular class constructor will be invoked, then y that B() constructor and A() constructor didnot print on console?we have created objects for them but yet they have not instantiated and printed on console.why?

    Reply
  2. Very helpful and can be easily understood. If people understand inheritance, then they should have no problem understanding the Super keyword. Thank you Telusko

    Reply
  3. Why would it be beneficial to create both objects by default. Has java always been like that?

    Reply
  4. Sir, Can You Please Post The video on how to get Job as JAVA PROGRAMMER and what platform must need to understand.. What is knowledge important for entry level JAVA PROGRAMMER.. And what's will be expected ssalary.. so that can We prepare for interview and find that kind of job..

    Reply
  5. Its obvious people looking for "Super" keyword they don't know Inheritance so please try to explain in some simple way.

    Reply
  6. Navin sir,considering the last example,where you pass an int value in the super(5) which is called in parameterized constructor of class B..Before that shouldn't there be a call to the default super(); ?

    Should be like below while runtime:

    super();
    super(5);
    syso();

    and o/p as :
    in Const A
    in Const A para
    in Const B para

    Reply
  7. i will understand particular concept theory but not able to implement through code,sir please give me suggestions

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *