Difference between this(), super()?

Answer Posted / bindhu solomon

'this' is a pointer points to the object of the methods
invokes. super() is used to invoke the super class member
function.

Is This Answer Correct ?    17 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If an application has multiple classes in it, is it okay to have a main method in more than one class?

525


What is better - 'bit-shift a value' or 'multiply by 2'?

683


What are disadvantages of java?

506


What is meant by vector class, dictionary class, hash table class, and property class?

667


What is contract between hashcode and equal method?

556






What is a marker interface?

559


What do you mean by inner class in java?

556


What is the string function?

540


what is mutual exclusion? : Java thread

538


What is tcp and udp?

585


How variables are declared?

509


Why main() method is public, static and void in java ?

583


Why we use multi threading instead of multiprocessing?

564


Difference between this() and super() ?

562


What is the difference between double and float variables in java?

621