aspose file tools*
The moose likes Beginning Java and the fly likes keyword variable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "keyword variable" Watch "keyword variable" New topic
Author

keyword variable

Arnb Sen
Ranch Hand

Joined: Feb 23, 2004
Posts: 145
Hi All,

Is it possibe to use keywords as ordinary variables ? In general, we cannot use it but either some special keywords or keywords in some special way can be reused as a variable. Is this correct ?


Regards,<br />Arnab
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

Nope. You can't use keywords as variables in Java.


[Jess in Action][AskingGoodQuestions]
Arnb Sen
Ranch Hand

Joined: Feb 23, 2004
Posts: 145
Thanks
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: keyword variable