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

Answer Posted / abc

this() is used to invoke default constructor of same class
And super() is used to invoke constructor of super class.

Is This Answer Correct ?    12 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is treemap in java?

548


What is %02d?

573


How will you add panel to a frame?

640


Implement two stacks using a single array.

566


Is it necessary for the port addresses to be unique? Explain with reason.

569






What do you mean by hashing?

641


Explain how can you debug the Java code?

584


What is java and their uses?

544


What is super?

578


Why hashmap is used in java?

544


What is the gregoriancalendar class in java programming?

562


What are implicit objects in java?

543


What advantage do java's layout managers provide over traditional windowing systems?

539


What is the difference between stringbuffer and stringbuilder?

572


What's the default access specifier for variables and methods of a class?

506