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

Answer Posted / tulasi prasad

this keyword is used to invoke the current class properties.
Where as super keyword is used to invoke the immidiate
super class properites.

Is This Answer Correct ?    17 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is keyword auto for?

634


What's the purpose of static methods and static variables?

586


How would overload a function based on return type?

544


What is file in java?

551


Can we extend private class in java?

542






Can we have try without catch block?

637


If a method is declared as protected, where may the method be accessed?

524


What are static blocks in java ?

603


Can we have two methods in a class with the same name?

576


Is main an identifier?

545


What is balanced tree in java?

524


What are byte codes?

652


What is numeric function?

533


What is a variable analysis?

628


What is the common usage of serialization? What exceptions occur during serialization?

596