Categories

Jun 16, 2019 in JAVA

Q: Difference between this() and super() in java ?

this() is used to access one constructor from another with in the same class while super() is used to

access superclass constructor. Either this() or super() exists it must be the first statement in the

constructor.

Related questions

Madanswer
Jun 16, 2019 in JAVA
Jun 16, 2019 in JAVA
Jun 17, 2019 in JAVA
...