aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes does java have key word restrict? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "does java have key word restrict?" Watch "does java have key word restrict?" New topic
Author

does java have key word restrict?

X Sun
Greenhorn

Joined: Nov 26, 2000
Posts: 4
See below:
String String = "this is correct";
this assignment is correct.
I am impressed.
Harpal Singh
Ranch Hand

Joined: Oct 10, 2000
Posts: 229
Dear X,
String is a class not a keyword...so that is perfectlly fine........
Harpal
Tualha Khan
Ranch Hand

Joined: Nov 22, 2000
Posts: 287
Absolutely True!!
String String="Hello";
The above statement in java just makes an object in java. It is not using any reserved words or keywords of java language.
try
int int=56;
Compiler gives an error, saying int in a keyword and cannot be used as an identifier.

Bye,
Tualha Khan

SCJP2, BEA WLS 6.0, DB2 UDB 7.1
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: does java have key word restrict?