• 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

mock question: assertion

 
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Which of the following are valid command-line invocations of a Java application, MyApp?
A. java -da MyApp
B. java �assert MyApp
C. java -enableassertions MyApp
D. java �assertionOff MyApp
E. jjavac -source 1.5 MyApp.java


......






the answers are A, C and E

i get A and C understood, but what the heck is E??? (jjavac) ?? or if we take that as a printed error, to be javac, how would E be correct?
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It is just a typo. "jjavac" doesn't exist, it should be "javac".

If it's corrected, then answer E ofcourse doesn't run your Java application, it's just running the compiler to compile MyApp.java. The "-source 1.5" switch tells the compiler to treat the source code as Java 5 source code.
[ October 18, 2007: Message edited by: Jesper Young ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic