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
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Programmer Certification (OCPJP)
Do we assume assertion is disabled or enabled?
Shanel Jacob
Ranch Hand
Posts: 112
posted 17 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 17 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 17 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).
We don't have time to be charming! Quick, read this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Assertion question
Appropriate Assertion
assertions?
assert help
assertion doubt
More...