Sunday, 24 April 2016

Can you call this() and super() both in a constructor ?


No
because, super() or this() must be the first statement in  a constructor.

No comments:

Post a Comment

Note: only a member of this blog may post a comment.