top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What does super keyword do in java?

+1 vote
549 views
What does super keyword do in java?
posted Dec 15, 2017 by Jon Deck

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

It is used inside a sub-class method definition to call a method defined in the super class. Private methods of the super-class cannot be called. Only public and protected methods can be called by the super keyword. It is also used by class constructors to invoke constructors of its parent class.

answer Dec 28, 2017 by Manikandan J
...