• 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

Assertion Question...

 
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Folks,

For the following question the answer is A, but I choose the answer is D.
Because there is no different between A & D and I don�t know why they using
<Main Class> . Pls advice me.

Thanks, Raghu.K

Question: -

The package favourite.fruits contains classes for different fruits. Orange is one of the classes in this package. Assume that all the classes from this package are compiled with assertions enabled. Which of the following will enable assertions at runtime for this package, but will disable it for the class Orange, using standard JDK 1.4?

Select any 1 option:

[A] java-ea:favorite.fruits�-da:favourite.fruits.Orange <Main Class>

[B] java-ea:favorite.fruits�,- da:favourite.fruits.Orange <Main Class>

[C] java-ea:favorite.fruits� -da: Orange <Main Class>

[D] java-ea:favorite.fruits� -da Orange <Main Class>

[E] None of these.
 
Ranch Hand
Posts: 2023
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
favourite.fruits.Orange is your classname.
 
RAGU KANNAN
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Pls explain to me. The <Main Class> i couldn't understand.

Thanks, Raghu.K
 
reply
    Bookmark Topic Watch Topic
  • New Topic