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 kb Q19 page 283 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "kb Q19 page 283" Watch "kb Q19 page 283" New topic

kb Q19 page 283

Barkat Mardhani
Ranch Hand

Joined: Aug 05, 2002
Posts: 787
19. Which two of the following statements are true? (Choose two.)
A. If assertions are compiled into a source file, and if no flags are included at runtime,
assertions will execute by default.
B. As of Java version 1.4, assertion statements are compiled by default.
C. With the proper use of runtime arguments, it is possible to instruct the VM to disable
assertions for a certain class, and to enable assertions for a certain package, at the same time.
D. The following are all valid runtime assertion flags:
-ea, -esa, -dsa, -enableassertions,
E. When evaluating command-line arguments, the VM gives �ea flags precedence over �da
The wording of D is little confusing. I took that each line is portrayed as a single command with each separated by commas. So I marked it invalid.
Anupam Sinha
Ranch Hand

Joined: Apr 13, 2003
Posts: 1090
Hi Barkat
Though they have said "all" but then also yes it can be confusing.
Darren McLeod

Joined: Jul 07, 2003
Posts: 19
Is the answer C and D?

Barkat Mardhani
Ranch Hand

Joined: Aug 05, 2002
Posts: 787
I agree. Here's the link:
subject: kb Q19 page 283
It's not a secret anymore!