WHAT IS THE DIFFERENCE BETWEEN THIS() AND SUPER()?:

Pushpendra Singh

Total Post:241

Points:1205
Posted by  Pushpendra Singh
Java 
 1078  View(s)
Ratings:
Rate this:
  1. Pushpendra Singh

    Post:241

    Points:1205
    What is the difference between this() and super()?:

    this() can be used to invoke a constructor of the same class whereas super() can be used to invoke a super class constructor.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!