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 Assertion 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 "Assertion" Watch "Assertion" New topic


Satyajeet Kadam
Ranch Hand

Joined: Oct 19, 2006
Posts: 224
Assertion Error:
Please tell where is the problem

Anton Uwe
Ranch Hand

Joined: Jan 10, 2007
Posts: 122
"assert t>1:foo(8);" surely will not compile, because "foo(8)" does not evaluate to a value. But what do you mean with "problem"?
Anton Uwe
Ranch Hand

Joined: Jan 10, 2007
Posts: 122
Edit: Double post due to a forum error.
[ March 06, 2007: Message edited by: Anton Uwe ]
Atul Sawant
Ranch Hand

Joined: Jul 06, 2006
Posts: 304
assert should return anything but void.

Mission SCWCD. Mission SCJP Complete: SCJP 1.4 - 91%
I agree. Here's the link:
subject: Assertion
jQuery in Action, 3rd edition