A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
video training course this week in the
Programmer Certification (SCJP/OCPJP)
Joined: Mar 22, 2004
Oct 23, 2006 06:14:00
Can anyone tell why options 1 and 3 are correct and Not 2 and 3.
I thought 2 and 3 are correct.
You want to run Main.class from the command line. It uses two packages good.* and bad.*. You want to enable assertions for all classes of bad.* and at the same time you want to disable them for the package good.*. Which of the following command lines will achieve the above?[Select 2 options] 1)java -ea bad.* Main 2)java -ea:bad... Main 3)java -ea:bad... -da:good... Main 4)java -ea bad.* -da good.* Main 5)None of these.
SCJP1.5(86%)<br />SCWCD1.4(95%)<br />SCBCD1.3(92%)<br />IBM 252
Joined: Jun 05, 2006
Oct 23, 2006 06:42:00
I agree with you
I agree. Here's the link:
subject: Assertion Question
Doubt on Threading Qs
Enabling or disabling assertions
Khalid Mughal : Assertions
When assertions are executed
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015