Difference between this(), super()?
Answer Posted / janet
this() can be used to invoke a constructor of the same
class where as super() can be used to invoke a super class
constructor.
Is This Answer Correct ? | 53 Yes | 6 No |
Post New Answer View All Answers
What happens when you invoke a thread’s interrupt method while it is sleeping or waiting?
What are default methods ?
What are java packages?
Can we call virtual funciton in a constructor ?
How many types of flags are there?
Are arrays classes in java?
Is java type safe?
What is java jit compilers?
What is the main functionality of the remote reference layer?
What’s the difference between applets and standalone program?
How long will it take to learn java?
Can we rethrow the same exception from catch handler?
What are byte codes?
What happens if a constructor is declared private?
What is the difference between this() and super() in java?