CAN YOU USE THIS() AND SUPER() BOTH IN A CONSTRUCTOR IN JAVA?

Royce Roy

Total Post:51

Points:255
Posted by  Royce Roy
Java 
 1696  View(s)
Ratings:
Rate this:
  1. Mayank Tripathi

    Post:807

    Points:4035
    Can you use this() and super() both in a constructor in java?

    No. Because super() or this() must be the first statement.

Answer

NEWSLETTER

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