In Java, what are this() and super(), and where are you required to use them?
Answer Posted / glibwaresoftsolutions
Super() and this() are special keywords in Java that are used to invoke the constructor. This() and super() must appear as the block's initial line.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Describe what happens when an object is created in java ?
How do I write a self declaration?
What about method local inner classes or local inner classes in java?
What is array size in java?
what is mutual exclusion? : Java thread
What is a class instance variable?
Difference between Linked list and Queue?
What is the primary benefit of encapsulation?
What is the difference between an inner class and a sub-class?
Can you declare the main method as final?
Why we use methods in java?
What is the difference between array list and vector in java?
When super keyword is used?
Is singleton class immutable?
Explain about the main() method in java?