What is the difference between this() and super()?
Answer Posted / prabu.b
1)Super() always calling the constructor of immediate
super class, super() must always be the first statements
executed inside a subclass constructor.
2)You cannot use this() and Super() in the same constructor.
| Is This Answer Correct ? | 23 Yes | 4 No |
Post New Answer View All Answers
What are the differences between getting and load method?
What is nullpointerexception in java?
What are constants and how to create constants in java?
what is object-oriented programming in java?
Is double bigger than float?
What do you mean by inner class in java? Explain
Is arraylist an object in java?
What is the difference between member variables initialization and assignment in a constructor?
How we can declare a static variable?
What do you understand by copy constructor in java?
What are different types of control structures?
What is the basic difference between string and stringbuffer object?
What is the use of 'super' keyword inside a constructor?
What is the nested interface?
What is the latest java version?