Difference between this(), super()?
Answer Posted / anil kumar singh
1: 'this' keyword is only use to call to parametic
constructors within the same class.
2: 'super' keyword is use to call to parametric
constructors of base class.
Is This Answer Correct ? | 7 Yes | 12 No |
Post New Answer View All Answers
what is meant by encapsulation?
What are some characteristics of interference class?
Can we extend singleton class in java?
How can we make a class virtual?
Difference between overriding and overloading in java?
What is final?
What does the “static” keyword mean?
Explain about strings in java?
Which method you will use to create a new file to store some log data. Each time a new log entry is necessary, write string to the file in java ?
What is queue in java?
What is the difference between inner class and nested class?
Why do we override tostring method in java?
Can you instantiate the math class?
For class CFoo { }; what default methods will the compiler generate for you>?
What are the new features in java 8? Explain