What is the difference between this() and super()?

Answer Posted / amol

this() is used to call another constructor of current class based on the argument list....
super() is used to call the constructor of another class or parent class based on the argument list....

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is final int?

617


Why do you canvas?

691


What are wrapper classes in java?

696


What is jagged array in java?

630


What is meant by interface?

638






How do I convert a numeric ip address like 192.18.97.39 into a hostname like java.sun.com?

690


Explain the difference between intermediate and terminal operations in java8?

667


Can bool be null?

617


How can we access some class in another class in java?

654


How can an exception be thrown manually by a programmer?

606


What is jvm? How its run?

757


Difference between Preemptive scheduling vs. Time slicing?

659


Implementations of set interface?

658


Describe different states of a thread.

660


What is meant by object?

660