What is the difference between this() and super()?
Answer Posted / amol
this() is used to call another constructor of current class based on the argument list....
super() is used to call the constructor of another class or parent class based on the argument list....
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Is it possible to write a regular expression to check if string is a number?
How would you convert bytes to string?
What function extracts specified characters from a string?
What are three advantages of using functions?
what are the high-level thread states? : Java thread
What is the importance of main method in Java?
Why 1 is not a prime number?
What is the syntax and characteristics of a lambda expression? Explain
What is difference between Heap and Stack Memory?
What are untrusted applets?
What are the advantages of defining packages in java?
Is char * a string?
What's the difference between comparison done by equals method and == operator?
What is the platform?
How many functional interfaces does java 8 have?