Difference between this(), super()?
Answer Posted / ghulam mujtaba
this()can be used invoke to Constructor of the same class
Whereas super() can be used to invoke a super class
Constructor
Is This Answer Correct ? | 10 Yes | 4 No |
Post New Answer View All Answers
What are the two ways in which thread can be created?
How much is a java license?
What are the main uses of the super keyword?
What is an immutable object?
Why is java so important?
What is Java Shutdown Hook?
Can I learn java in 3 months?
What does java final mean?
Can a class be defined inside an interface?
Assume a thread has lock on it, calling sleep() method on that thread will release the lock?
How does java enable high performance?
Does sprintf add a null terminator?
Are static members inherited to sub classes?
What is the difference between abstraction and encapsulation?
Which class contains a method: cloneable or object?