What is the difference between this() and super()?
Answer Posted / kraja
this() should be first statement in the constructor of the
same class and you cannot call this() in other places
| Is This Answer Correct ? | 21 Yes | 22 No |
Post New Answer View All Answers
Does the order of public and static declaration matter in main method?
What is a boolean in java?
Which browsers work with java?
What is passing by reference in java?
How do you remove spaces in java?
Which class is the superclass for all the classes?
What happens when main () method is declared as private?
How many functional interfaces does java 8 have?
How do you take thread dump in java?
Can interface be private in java?
What are the common uses of "this" keyword in java ?
Explain the difference between map and flatmap stream operation?
Why is multiple inheritance not supported in java?
If we allocate the memory using 'new' & de-allocated using 'free' then what will happen?
What is the difference between variable & constant?