Answer Posted / kalai
it can be used to call same class constructor.
it refers current object.
example
public class sample{
int k,l;
sample(int k,int l)
{
this.k = k;
this.l = l;
}
}
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
In the below example, how many string objects are created?
What class of exceptions are generated by the java run-time system?
How do you decide when to use arraylist and linkedlist?
How do you remove an element from an arraylist in java?
Does java vector allow null?
What is adapter in java?
What is method with example?
What is object in java?
Why Do I Get A "permission Denied" Error After Downloading The .jnlp Java Launcher For The Vkvm?
Is it possible to write a regular expression to check if string is a number?
How to sort numbers in java without array?
Is the empty set a singleton?
Explain all java features with real time examples
What do you mean by constructor?
Do you need to import math in java?