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 |
Can Java be said to be the complete object-oriented programming language
How do you differentiate abstract class from interface?
Why cant we define System.out.println() inside a class directly?
What is valid keyword in java?
Functionality of JVM?
What do you know about the garbage collector?
What is difference between char array and string?
what is the role of xml in core java?? and how we can use it?? can somebody give a sample program with explanation and from where i can read more about xml?????
0 Answers HCL, SAP Labs, Vital Soft,
How can we achieve thread safety in java?
what is the difference between cd & dvd ?
30 Answers Lovely Professional University, Satyam, Sibylsys,
Is array size fixed in java?
How can we make a class virtual?