Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Danielle Daniels   on Jun 01 In Java Category.

  
Question Answered By: Utsav Shah   on Jun 01

The this keyword is basicly used to refference to the particular
instance of a Object.

The easiest example is variable names:

If you had a global variable Object called Bob

Object bob;

and you had a method that had accepted a Object in it's method signiture

public void methodName(Object bob){...}

You can do something like this

public void methodName(Object bob){
this.bob = bob;
}

Share: 

 

This Question has 4 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on help me to understand "THIS" key word Or get search suggestion and latest updates.


Tagged: