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 8 in Action this week in the Java 8 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: 24168

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
Similar Threads
Reserved words in Java
keywords and reserved word
are these keywords ?.....
reserved and keywords
Difference between identifier and keyword