Difference between this(), super()?

Answer Posted / ghulam mujtaba

this()can be used invoke to Constructor of the same class
Whereas super() can be used to invoke a super class
Constructor

Is This Answer Correct ?    10 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the two ways in which thread can be created?

571


How much is a java license?

502


What are the main uses of the super keyword?

532


What is an immutable object?

557


Why is java so important?

633






What is Java Shutdown Hook?

586


Can I learn java in 3 months?

513


What does java final mean?

504


Can a class be defined inside an interface?

541


Assume a thread has lock on it, calling sleep() method on that thread will release the lock?

583


How does java enable high performance?

658


Does sprintf add a null terminator?

532


Are static members inherited to sub classes?

608


What is the difference between abstraction and encapsulation?

532


Which class contains a method: cloneable or object?

512