In Java, what are this() and super(), and where are you required to use them?
Answer Posted / nashiinformaticssolutions
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
What is mean by exception?
What is function and its uses?
Why local variables are stored in stack?
What is the use of default method in interface in java? Explain
How big is a 32 bit integer?
Which is dependent variable?
Can we store variables in local blocks?
What is the relationship between clipping and repainting under awt?
What happens when you invoke a thread’s interrupt method while it is sleeping or waiting?
What do you mean by data type?
When does an object becomes eligible for garbage collection in java?
how is final different from finally and finalize in java?
What is generic class?
Why put method is idempotent?
Can an interface have a class?