+1 vote
in JAVA by

What is the difference between super and this in Java?

1 Answer

0 votes
by

super is a reference to the superclass of a class, while this is a reference to the current instance of a class. super is used to call the constructor or a method of the superclass, while this is used to refer to the current instance of a class.

Related questions

0 votes
asked Jul 2, 2023 in JAVA by rajeshsharma
0 votes
asked Jun 16, 2019 in JAVA by reins.robin
...