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...

What is the use of ?this??

Answer Posted / ashokmail

'this' operator is used to denote the current working
object.

EX:
Class student{
public student(){
this.addStudent();
}
public void addStudent(){
// to do code here
}
public static void main(String args[]){
new student();
}
}

'this' in the constructor is used to denote the current
working object student...

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the symbol for space?

980


Does java isempty check for null?

986


Can inner class extend any class?

1040


What is the latest java version?

1038


What is consumer in java?

953


What is a treeset in java?

1023


What is preparedstatement in java?

1021


What are "class access modifiers" in Java?

1109


Why is singleton not thread safe?

1031


How do you check if two given string are anagrams?

945


Can we create constructor in abstract class ?

1027


Can bool be null?

974


Does java initialize arrays to zero?

1013


What are the advantages of java inner classes?

1055


What is the role of garbage collector in java?

949