This blog records some ideas, notes, and information of my works and studies in information technology.

Monday, February 23, 2009

SCJD Exam with J2SE 5.0--Chapter 3

All the essential requirements are:
  1. Executable JAR
  2. Executable server-specific JAR
  3. src contains all the source codes
  4. The original files provided by SCJD examinator
  5. docs contains:
    a. Javadocs for API
    b. End user documentation
    c. Design decision documents

SCJD Exam with J2SE 5.0--Chapter 2

  1. Organizing a project
    a. Suggested Directory Structure
        src/
        classes/
        bkp/ --backup files
        tst/ -- source files for unit-testing
        tmp/
        log/
        doc/
            I.     Javadocs
            II.   End-user docs
            III. design desicions docs
            IV. version.txt
  2. Design Decisions Document
  3. Assertions
  4. Logging
    java.util.logging.Logger Logger  myLogger = Logger.getLogger("example.com.testApplication"); 
    java.util.logging.Handler  myLogger.addHandler(new FileHandler("temp.log")); 
    java.util.logging.FileHandler  myFileHandler.setFormatter(new SimpleFormatter());--Set the format of log files