how to use this key word in java programming?

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


Please Help Members By Posting Answers For Below Questions

What is keyword in oop?

773


What is parameter example?

801


What is meant by flickering?

875


What is maximum size of arraylist in java?

732


How big is a 64 bit float?

792


What is the benefit of using enum to declare a constant?

892


Why there are some null interface in JAVA? What does it mean? Give some null interface in JAVA?

879


What is meant by javabeans?

855


What is the default access specifier for variables and methods of a class?

894


What is a substring of a string?

839


What is the purpose of lambda expressions?

820


Is java ee a framework?

751


What is variable declaration and definition?

788


What is a “stateless” protocol ?

783


What is communist flag?

788