| Author |
instanceOf & the instanceof.
|
thejaka samarakoon
Ranch Hand
Joined: Jul 20, 2010
Posts: 56
|
|
|
What is the difference with What is the difference with instanceOf & the instanceof.
|
 |
Christophe Verré
Sheriff
Joined: Nov 24, 2005
Posts: 14669
|
|
|
Only one of them is a reserved Java keyword. Can you guess which one ?
|
[My Blog]
All roads lead to JavaRanch
|
 |
Deepak Bala
Bartender
Joined: Feb 24, 2006
Posts: 6588
|
|
thejaka samarakoon wrote:What is the difference with What is the difference with instanceOf & the instanceof.
Coincidentally, there is a similarity at the beginning of your question.
Try to compile a sample program with those words in order to understand the difference
|
SCJP 6 articles - SCJP 5/6 mock exams - SCJP Mocks - SCJP 5 Mock exam (Word document ) - SCJP 5 Mock exam in Java.Inquisition format
|
 |
Sahil Kapoor
Ranch Hand
Joined: Sep 12, 2009
Posts: 316
|
|
Unfortunately method should be instanceOf but it is instanceof
Another method is mkDir() which is actually mkdir().
|
SCJP 6.0 96%
(Connecting the Dots ....)
|
 |
Mahmoud Hossam
Ranch Hand
Joined: Feb 20, 2010
Posts: 74
|
|
Sahil Kapoor wrote:Unfortunately method should be instanceOf but it is instanceof
Another method is mkDir() which is actually mkdir().

instanceof is an operator,not a method
also,mkdir was named after the linux of the same name,which does the exact same job as this method,creating directories
|
 |
 |
|
|
subject: instanceOf & the instanceof.
|
|
|