Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within OCPJP
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
Ron McLeod
paul wheaton
Jeanne Boyarsky
Sheriffs:
Paul Clapham
Devaka Cooray
Saloon Keepers:
Tim Holloway
Roland Mueller
Himai Minh
Bartenders:
Forum:
Programmer Certification (OCPJP)
Do we assume assertion is disabled or enabled?
Shanel Jacob
Ranch Hand
Posts: 112
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi all, during the exam, do the questions actually tell you if assertion is enabled or disabled (since the "right" answer varies with assumption).
Sriram.Narayanan Thiagarajan
Greenhorn
Posts: 26
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
-ea <FILE_NAME>
or
java -enableassertions <FILE_NAME>
Refer K&B for various options in it .
Gowher Naik
Ranch Hand
Posts: 643
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
By default assertions are disable at run time.
In question it will be mentioned(assertion enable or disable).
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Assertion question
Appropriate Assertion
assertions?
assert help
assertion doubt
More...