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 is the difference between a break statement and a continue statement?

603


What invokes a thread's run() method in java programming?

571


How is a variable stored in memory?

534


What are the types of web technologies?

535


How is hashset defined in java?

521






What is difference between filereader and bufferedreader?

537


Can finally block be used without a catch?

548


Which collection does not allow duplicates in java?

478


When does a class need a virtual destructor?

533


What is class array in java?

517


What is the private method modifier?

589


Which method must be implemented by all threads?

728


what are three ways in which a thread can enter the waiting state? Or what are different ways in which a thread can enter the waiting state? : Java thread

527


What do you mean by static variable?

583


How will you load a specific locale?

540