This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

system Classes and non-system Classes

 
Vishnu Munnangi
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Everyone,
Can any one explain me what are the non-system Classes and system Classes.

While writing Dan's mock exam on Assertions, i found this question,

Which of the following are command-line switches used to enable assertions in non-system classes?
a. -ea
b. -ae
c. -aon
d. -aoff
e. -enableassertions
f. -assertionsenable
g. -assertionson
h. -assertionsoff


Thanks in Advance.
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"System" classes are those provided by Sun as part of the jdk or jre distribution. Those classes may have assertions in them. Normally they are disabled. If you were having a problem with one of these classes then you could enable system assertions to possibly better see where the problem lies. The term could also relate to assertions within the JVM itself.

"Non-System" classes are the classes you, the developer, write.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic