File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 REST with Spring (video course) this week in the Spring 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

does java have key word restrict?

X Sun

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 that is perfectlly fine........
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.
int int=56;
Compiler gives an error, saying int in a keyword and cannot be used as an identifier.

Tualha Khan

SCJP2, BEA WLS 6.0, DB2 UDB 7.1
Consider Paul's rocket mass heater.
subject: does java have key word restrict?
It's not a secret anymore!