Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP 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