Difference between this(), super()?

Answers were Sorted based on User's Feedback



Difference between this(), super()?..

Answer / jitender

this,super key words not accepted static keyword.

Is This Answer Correct ?    0 Yes 0 No

Difference between this(), super()?..

Answer / anil kumar singh

1: 'this' keyword is only use to call to parametic
constructors within the same class.

2: 'super' keyword is use to call to parametric
constructors of base class.

Is This Answer Correct ?    7 Yes 12 No

Post New Answer

More Core Java Interview Questions

How can you debug the Java code?

6 Answers   BirlaSoft,


1.IN CASE OF DYNAMIC METHOD DISPATCH WHY WE USE REFERENCE VARIABLE,WE CAN USE THE DIFFERENT DEFINED OBJECT DIRECTLY TO ACCESS THE DATA MEMBER AND MEMBER FUNCTION OF THAT RESPECTIVE CLASS?WHAT IS THE MAIN FUNCTION OF "REFERENCE VARIABLE" HERE?

2 Answers   TCS,


Convert Binary tree to linked list.

0 Answers   Amazon,


Tell me the Importent classes in net package?

0 Answers  


What is Java Shutdown Hook?

0 Answers  






What is an inner class in java?

0 Answers  


How do constructors use this() and super()?

0 Answers  


what modifiers are used with top-level class?

2 Answers  


How the elements are organized in BorderLayout?

5 Answers  


Compare java and python.

0 Answers  


What is the this keyword?

0 Answers  


Explain access specifiers?

0 Answers   Thomson Reuters, Virtusa,


Categories