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

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
The question is
The package favorite.fruits contains different classes for different fruits.Mango,Orange and Apple are some of the classes in this package.Assume that all the classes from this package are compiled with assertions enabled.Given the following command at the command prompt,which of hte following classes would have assertions enabled?
java -ea:favorite.fruits...-da:favorite.fruits.Apple favorite.fruits.Mango
A. favorite.fruits.Mango
B. favorite.fruits.Pineapple
C. favorite.fruits.Apple
D. favorite.fruits.Orange
E. net.util.FTPMan

result is ABD, could someone explain why A, thanks
 
Sheriff
Posts: 11343
Mac Safari Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Please don't post the same question twice. Please continue this discussion under the original thread.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic