What is the difference between this() and super()?
Answer Posted / amarmca84
this() can be used to invoke a constructor of the same class
whereas super() can be used to invoke a super class constructor.
| Is This Answer Correct ? | 91 Yes | 8 No |
Post New Answer View All Answers
what is the purpose of "virtual"?
Which arithmetic operations can result in the throwing of an arithmeticexception?
Is there a jre for java 11?
How many inner classes can a class have?
What is the use of :: in java?
What is the main use of java?
What all access modifiers are allowed for top class ?
Explain the advantages of packages in java?
Can we cast any other type to boolean type with type casting?
Explain the importance of join() method in thread class?
How many types of the indexof method are there for strings?
What is meant by local variable and instance variable?
Can a top level class be private or protected?
What is the difference between JDBC 1.0 and JDBC 2.0?
What are the advantages of java over cpp?