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

Answer :
this() is used to invoke a constructor of the same class. super() is used to invoke a superclass constructor.

0 comments:

Post a Comment

 
Copyright © Interview Questions and answers - Blogger Theme by BloggerThemes & freecsstemplates - Sponsored by Internet Entrepreneur