What does this() represent, and how is it used in Java?
Answers were Sorted based on User's Feedback
Answer / nashiinformaticssolutions
• The current instance of a class is represented by this().
• Previously used to: o Call the same class's default constructor
Access the current class's methods
o Indicate the instance of the current class.
| Is This Answer Correct ? | 0 Yes | 0 No |
The current instance of a class is represented by this().
• Previously used to: o Call the same class's default constructor
Access the current class's methods
o Indicate the instance of the current class.
| Is This Answer Correct ? | 0 Yes | 0 No |
What are the differences between graph and tree?
Can we iterate through collection using for loop?
What is difference between static variable and global variable?
Is singleton class immutable?
what methods would you overwrite in java.lang.object class?
How big is a boolean?
what is the difference between abstract class and Interface?where we can use it in realtime projects?
23 Answers Agile Software, Cognizant, IBM, Innodata, Logica CMG, Mitosis, Nagarro, Value Chain,
Why is core java important?
Can an object subclass another object?
What is a null point?
Is java map thread safe?
What are pass by reference and pass by value?