Difference between this(), super()?
Answer Posted / nikhlesh gupta
this() call one of user define constructor inside another user constructor of the same class such as this(a), this(a,b) & so on.
super() call one of base class constructor inside the derive class constructor such as super(a), super(a,b) & so on.
Is This Answer Correct ? | 26 Yes | 5 No |
Post New Answer View All Answers
In which order the iterator iterates over collection?
What is difference between static variable and global variable?
Why are generics used?
What is identifier in java?
What is method reference?
What do you understand by java virtual machine?
What are the different types of inner classes?
What does i ++ mean in Java?
How many bytes is a unicode character?
Can inner class extend any class?
What are the types of strings?
What is the purpose of static methods and static variables?
What programs use java?
Why static functions are used?
Can you override static methods?