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


Please Help Members By Posting Answers For Below Questions

What are the three best choices for a development environment?

895


Can you access the private method from outside the class?

770


Find the value of a specified element of the array arr[i] where 0 <= i <= n-1

776


Which java ide is used the most?

784


Why is boolean important?

838


What is the null?

800


What is the purpose of the file class in java programming?

775


Why java does not support pointers?

813


What is string [] args?

813


What are unchecked exceptions in java?

849


How can we pass argument to a function by reference instead of pass by value?

868


What is difference between iterator access and index access?

880


What is the difference between post and put?

801


What is the difference between an argument and a parameter?

793


What do you mean by mnemonics?

801