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 |
In collection sorting comparable and comparator interface will be used..but why this two interfaces required..two will work same purpose so why there are two interfaces instead of one?when to use comparator and when to use comparable?
Is minecraft 1.15 out?
What are order of precedence and associativity, and how are they used?
Can we make the abstract methods static in java?
JVM responsibility?
Hi am an mca graduate . i have done bsc maths in my degree . every company asks me why you make shift from maths group to computere field . What i need to answer?
Give reasons supporting that string is immutable.
what is the diffrence between class and object?
Explain an algorithm to find depth of a binary tree.
0 Answers Akamai Technologies,
How to add panel to a Frame?
What is a line break example?
Write a program to calculate factorial in java?