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

Answer Posted / ravikiran(aptech mumbai)

this() is used to call constructors wih in same class where
as super() is used to call the constructors of it's super class

Is This Answer Correct ?    16 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between identifier and variable?

458


What is vector capacity in java?

587


What is the major advantage of external iteration over internal iteration?

600


What is linkedlist in java?

490


What is a class object?

487






Why is logger singleton?

548


'A class is a template for an object' explain this statement.

533


What is the java project architecture?

1769


Is java a software?

505


How to create a base64 decoder in java8?

541


What are untrusted applets?

573


What is your platform’s default character encoding?

544


How do you find the maximum number from an array without comparing and sorting?

626


Convert a BST into a DLL and DLL to BST in place.

652


What is the Difference between Final Class && Abstract Class?

604