Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 must a class do to implement an interface in java programming?

1057


Differences between C and Java?

1199


What technique can be employed to compare two strings?

1102


Explain the importance of thread scheduler in java?

1016


What is try-with-resources in java?

1172


Should you use singleton pattern?

936


what is deadlock? : Java thread

1009


Which are different kinds of source code?

1110


What are different types of states exist for a thread?

1008


What are basic data types?

1095


What happens when I use / and % with a negative numerator?

1043


What is complexity and its types?

1031


How java is similar to c?

1053


In java how do we copy objects?

1048


What is finally block?

1052