Java Coder
How are this() and super() used with constructors?
1 Answer(s)      3 years and 10 months ago
Posted in : Java Beginners


How are this() and super() used with constructors?



View Answers

April 18, 2013 at 10:47 AM

Hi friend,

In any programming language keywords are the reserve words which contains the specific meaning relevant to the corresponding programming language's compiler. Likewise, this and super keywords in Java programming language are reserved for specific purposes. this keyword helps in removing the ambiguity of references and allows to refer to the current instance within the running program. super keyword is used for calling the parent's class constructor i.e. we can established constructor chaining using this keyword.

For more detail please go through the following links

Related Tutorials/Questions & Answers: