What does this() represent, and how is it used in Java?
Answer Posted / 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 |
Post New Answer View All Answers
what is bmg file and how to create that files?what will it contailn?
Does A Class Inherit The Constructors Of Its Superclass?
What is formatted output?
How does varargs work in java?
Implement a stack with push (), pop() and min() in O(1) time.
Explain the transient field modifier?
What is the gregoriancalendar class in java programming?
Does java linked list allow duplicates?
What is anti pattern in programming?
Can we use a default constructor of a class even if an explicit constructor is defined?
What is the difference between JDK and JVM?
Why is stringbuffer not immutable?
How do you sing an Applet ?
What is use of arraylist in java?
How do I know if java is installed?