A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Spring in Action
this week in the
Programmer Certification (SCJP/OCPJP)
Do we assume assertion is disabled or enabled?
Joined: Jun 18, 2006
Aug 12, 2006 01:17:00
Hi all, during the exam, do the questions actually tell you if assertion is enabled or disabled (since the "right" answer varies with assumption).
Joined: Jul 21, 2006
Aug 12, 2006 02:26:00
by default assertion is disabled
To enable assertion-awareness at compile time
javac -source 1.4 <FILE_NAME>
To enable assertion-awareness at run time
java -enableassertions <FILE_NAME>
Refer K&B for various options in it .
Joined: Feb 07, 2005
Aug 12, 2006 02:28:00
By default assertions are disable at run time.
In question it will be mentioned(assertion enable or disable).
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
subject: Do we assume assertion is disabled or enabled?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014