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

Is array primitive data type in java?

1000


What is a Transient Object?

1085


How does singleton class work?

993


What is jagged array in java?

1087


What is the use of http-tunneling in rmi?

1052


What are three advantages of using functions?

1011


What are constructors in java?

1118


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

1127


What is a local block?

1144


Which types of exceptions are caught at compile time?

1036


Why char array is favored over string for the storage of passwords?

1081


What is a functional interface?

1042


Can you use abstract and final both with a method?

1095


What is the main difference between java platform and other platforms?

1106


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

1087