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
Explain thread life cycle in java?
What data structures are used to perform recursion?
What are encapsulation, inheritance and polymorphism?
Write a program in java to create a doubly linked list containing n nodes.
When should I use stringbuffer?
What is the difference between heap memory and stack memory?
Why call by value prevents parameter value change?
What is the use of default method in interface in java?
Is java an open source?
Can we create an object of private class?
What is the tradeoff between using an unordered array versus an ordered array?
What is appletviewer?
What is a lock or purpose of locks in java?
When wait(), notify(), notifyall() methods are called does it releases the lock or holds the acquired lock?
Is empty set an element of empty set?