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

Can java inner class be static?

644


Can we overload the main() method?

647


What is qms certification?

605


What is a nullable field?

658


How does hashmap work in java ?

624






What is method overloading in JAVA? Why is it not present in C ?

666


Explain the selection sort algorithm and state its time complexity?

695


How does linkedlist work in java?

591


What is a Null object?

1020


Why we use set in java?

622


What is charat ()?

619


What do you understand by classes in java?

664


Name and explain the types of ways which are used to pass arguments in any function in java.

675


What are the types of casting?

688


You can create a string object as string str = “abc”; why cant a button object be created as button bt = “abc”;? Explain

627