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

Pushpendra Singh

Total Post:240

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

    Post:240

    Points:1200
    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!