Difference between this(), super()?
Answer Posted / selvan
this & super is a keyword.
"this" is used to invoke a constructor of a same class,
its pointing the same class object.
"super" is used to invoke a superclass constructor and
accessing the superclass constructor.
Is This Answer Correct ? | 25 Yes | 3 No |
Post New Answer View All Answers
How do you compare two strings lexicographically?
Why do we use return statement?
Can we convert list to set in java?
Write an algorithm for quick sort?
What is high level language in computer?
what is encapsulation in java? Explain
How many bits is size_t?
What is byte value?
What is the common usage of serialization?
Will the jvm load the package twice at runtime?
What restrictions are placed on method overloading in java programming?
What is a final class in java?
What is string data?
Can a final variable be initialized in constructor?
What is mnemonic code?