I still dont understand. The study guide says that java 1.4 covers assertions, and i try to use the java syntax ive written in my first post, but it wont compile. And when i write java in my command window, it doesnt support the -source option, why is that ? and when i dont got this option, how can i compile source with assertions in it ? I c that u have java version 1.4.1_03 while i have 1.4.1_01, if thats the case, then the study guide should say that i have to use java version 1.4.1_03....still confused
D:\MY CAVE\Work\Java Certification>java
Usage: java [-options] class [args...]
(to execute a class)
or java -jar [-options] jarfile [args...]
(to execute a jar file)
where options include:
-client to select the "client" VM
-server to select the "server" VM
-hotspot is a synonym for the "client" VM [deprecated]
The default VM is client.
-cp -classpath <directories and zip/jar files separated by ;>
set search path for application classes and resources
-D<name>=<value>
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product version and exit
-showversion print product version and continue
-? -help print this help message
-X print help on non-standard options
-ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>]
enable assertions
-da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>]
disable assertions
-esa | -enablesystemassertions
enable system assertions
-dsa | -disablesystemassertions
disable system assertions
[ August 10, 2003: Message edited by: Shafkat Talli ]