Difference between this(), super()?

Answer Posted / janet

this() can be used to invoke a constructor of the same
class where as super() can be used to invoke a super class
constructor.

Is This Answer Correct ?    53 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between throw and throws?

624


What are the 6 mandatory procedures for iso 9001?

533


What is basic syntax?

553


can java object be locked down for exclusive use by a given thread? : Java thread

537


What is mean by encoding?

629






Can you call a method on a null object?

567


Can abstract class have private constructor?

501


What is a control variable example?

534


Explain spliterator in java8?

603


What is the current version of java?

547


What are autoboxing and unboxing? When does it occur?

536


Is singleton class thread safe?

542


Write a program in java to establish a connection between client and server?

511


What is singleton class example?

591


How will you reverse a link list without using recursion?

601