What is the use of ?this??

Answer Posted / vijayakumar chinnasamy

this:
a. It call the overloaded(same class only)constructor
b.refer the current object.
c.U cant use 'this' in static method.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a nonetype?

648


What is anagram word?

623


How does arrays sort work in java?

713


Is char * a string?

637


Can we overload the methods by making them static?

609






What is a null point?

646


What is the difference between int and integer in java?

630


Can arraylist hold different types java?

574


What is the difference between hashmap and hashtable in java?

651


Why are data types important?

640


What is meant by interface?

638


What is the difference between array list and vector in java?

597


Can a final variable be manipulated in java?

625


What does a za z0 9 mean?

641


Can we have any code between try and catch blocks?

643