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

Answer Posted / varunkumar

this keyword is used to invoke the current class properties.
Where as super keyword is used to invoke the immidiate
super class properites.
this keyword is same name of mathed and decleare value is
used the this class

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is meant by memory leak?

533


How thread scheduler schedule the task?

578


What is the primitive type byte?

569


Difference between nested and inner classes ?

598


How to create a custom exception?

567






How hashmap increases its size in java?

479


What is dynamic array in java?

519


What is numeric data type?

523


What is the java virtual machine?

576


What is the difference between static (class) method and instance method?

566


What are three types of loops in java?

581


What is the difference between integer parseint and integer valueof?

542


Can classes declared using the abstract keyword cab be instantiated?

552


What is the preferred size of a component in java programming?

535


What is the method to expand and collapse nodes in a jtree?

603