Basic and Advance Java Question:
Download Questions PDF

How are this() and super() used with constructors in Java Programming?

Answer:

this() is used to invoke a constructor of the same class. super() is used to invoke a superclass constructor in Java Programming.

Download Java Interview Questions And Answers PDF

Previous QuestionNext Question
What class allows you to read objects directly from a stream in Java Programming?How is it possible in Java Programming for two String objects with identical values not to be equal under the == operator?