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 technique can be employed to compare two strings?

569


what are Hostile Applets?

1598


Difference between collection, collection and collections in java?

568


What do you understand by weak reference?

550


What are implicit objects in java?

549






Can we have more than one package statement in the source file?

638


What is collection class in java? List down its methods and interfaces.

523


How do you compare two objects?

519


What is a singleton class in Java?

503


Define inheritance?

549


Can we declare the static variables and methods in an abstract class?

544


How does the java compiler work?

526


Can we define private and protected modifiers for the members in interfaces?

531


What is the role of the java.rmi.naming class?

519


Is arraylist sorted in java?

527