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
Will the compiler creates a default constructor if I have a parameterized constructor in the class?
What will be the default values of all the elements of an array defined as an instance variable?
What is the difference between jdk and jre?
What is the difference between import java.util.date and java .util?
What is null statement?
What is the difference between menuitem and checkboxmenu item?
What is a layout manager and what are different types of layout managers available in java awt?
What is "this" keyword in java? Explain
What is the file extension for java?
What is the use of toarray () in java?
What do you mean by platform independence? What is an interface?
What is derived datatype?
Is void a keyword in java?
What is the size of integer?
Can inner class be public in java?