Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Does this exist?

 
Holmes Wong
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I saw somewhere people mention "instanceOf". I know we have instanceof. Does the former exist
in Java?
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nope, instanceOf does not exist... The correct syntax is instanceof.
 
Rajinder Yadav
Ranch Hand
Posts: 178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd add to that, that all java keywords are in lowercase and that instanceof is an operator, incase you get asked that
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic