This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes assert 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 » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "assert" Watch "assert" New topic



Joined: Aug 01, 2003
Posts: 21
is assert a java keyword/reserved ?
Bert Bates

Joined: Oct 14, 2002
Posts: 8898
As of 1.4 'assert' is a keyword. If you want to run pre-1.4 code that happened to use 'assert' as a name, you can tell the compiler to ignore 'assert' as a keyword.

Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)
I agree. Here's the link:
subject: assert
It's not a secret anymore!