In Java, what are this() and super(), and where are you required to use them?



In Java, what are this() and super(), and where are you required to use them?..

Answer / nashiinformaticssolutions

Super() and this() are special keywords in Java that are used to invoke the constructor. This() and super() must appear as the block's initial line.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is Overriding and how can it be used?

7 Answers   Consagous, Wipro,


Linked List reverese program

2 Answers   Bally Technologies,


How will you get the platform dependent values like line separator, path separator, etc., ?

0 Answers  


How will you communicate between two applets?

0 Answers  


explain System.out.println

107 Answers   Calpine Technologies, Care, Cognizant, CTS, IBM, IBS, LibSys, Oracle, Spiro Solutions, TCS,






how to create daemon thread in java?

0 Answers  


What is volatile keyword in java

0 Answers  


What are internal and external variables?

0 Answers  


Why can we not override static method?

0 Answers  


Is java a prime method?

0 Answers  


What is a flag variable?

0 Answers  


What is an enumeration class?

2 Answers  


Categories