Tuesday, 11 May 2010

SCJP Sun Certified Programmer By Kathy Sierra and Bert Bates - Final Part

Couple of months back i started practicing SCJP Sun Certified Programmer for Java 5 Study Guide By Kathy Sierra and Bert Bates.

Great book written by Kathy Sierra and Bert Bates.

I wanted to share few important quotations found from the last chapter.

1) use -d option to change the destination of a class file when it's first generated by the javac command.

2) System properties consist of name=value pairs that must be appended directly behind the -D, for example, Java -Dmyproperty=myvalue.

3) Command-line arguments are always treated as Strings.

4) Default classpaths can be defined by using OS environment variables.

5) In Unix, colons (:) are used to separate the paths within a classpath. In Windows, semicolons (;) are used.

6) In a classpath, to specify the current directory as a search location, use a dot (.)

7) When you include a JAR file in a classpath, you must include not only the directory in which the JAR file is located, but the name of the JAR file too.

8) You can use static imports to create shortcuts for static members (static variables, constants, and methods) of any class.

No comments: