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 are the 4 types of research methods?

962


How can we run a java program without making any object?

1091


Can long be null in java?

1082


What are three ways in which a thread can enter the waiting state in java programming?

1223


How do you identify independent and dependent variables?

1069


How objects of a class are created if no constructor is defined in the class?

1126


What is return data type?

1060


What is pojo class in java?

1203


What is the implementation of destroy method in java. Is it native or java code?

1023


How many types of string data types are there?

1166


What are different type of exceptions in java?

1016


How do you remove all elements from an arraylist in java?

1106


What is token in java?

1074


What is bitwise complement?

1035


What are different types of multitasking?

1006