What is the difference between this() and super()?
Answer Posted / amol
this() is used to call another constructor of current class based on the argument list....
super() is used to call the constructor of another class or parent class based on the argument list....
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is object of class in java?
What is a singleton class in Java?
what do you mean by marker interface in java?
What are the different ways to handle exceptions?
What is the use of http-tunneling in rmi?
How many JVMs can run on a single machine and what is the Just-In-Time(JIT) compiler?
Explain about OOPS concepts and fundamentals.
What is the access scope of a protected method?
What are the main differences between notify and notifyAll in Java?
What is the maximum size of list in java?
When does an object becomes eligible for garbage collection in java?
What is the buffer limit?
How do weakhashmap works?
What are data types in oop?
What is an infinite loop in java? Explain with an example.