File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "keyword variable" Watch "keyword variable" New topic

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

Joined: Jul 08, 2003
Posts: 24199

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

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

Joined: Feb 23, 2004
Posts: 145
I agree. Here's the link:
subject: keyword variable
It's not a secret anymore!