Difference between this(), super()?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

how to create multithreaded program? Explain different ways of using thread? : Java thread

539


What is the basic concepts of OOPS?

695


What is the difference between yielding and sleeping in java programming?

591


what is the volatile modifier for? : Java thread

527


Describe how to implement singleton design pattern in struts.

537






What’s the difference between constructors and other methods?

536


Write a java program to count the number of words present in a string?

540


What defines function?

544


what are the methods in object?

636


What is derived datatype?

631


How do you trim a space in java?

505


What is application system?

507


How variables are stored in memory?

541


Which class contains a method: cloneable or object?

542


Is it possible to override the main method?

537