What does this() represent, and how is it used in Java?
Answer Posted / hr@tgksolutions.com
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 |
Post New Answer View All Answers
What is the main use of java?
What is difference between array and arraylist in java?
What is meant by overloading?
What is type parameter in java?
What is the new line character?
what is use of functional interface in java 8?
Explain why wait(), notify() and notifyall() methods are in object class rather than in the reading class?
What is the purpose of assert keyword used in jdk1.4.x?
What is space character in java?
What are new features introduced with java 8 ?
Explain different ways of creating a thread?
What is an error in java?
Can we have multiple catch block for a try block?
Is it possible to define a method in java class but provide it’s implementation in the code of another language like c?
Is there a way to increase the size of an array after its declaration?