Dec 06 2007

Javadoc 筆記

Published by under Java 複習

Where to put:

  • Class comments: appear immediately before the class declaration
  • Class and instance variable comments: appear immediately before the class or instance variable to which they belong.
  • Method comments: appear immediately before the method signature.

Commonly used HTML tags in javadoc:
(Javadoc produces output conforming to HTML standard 3.2)

  • <code>…</code>
    appear in monospaced font in the HTML output. It is designed for short words or phases, such as Java keywords, package names, class and interface names, method names, field names, and argument names.
  • <pre>…</pre>
    monospaced font, the same with <pre> tags in standard HTML.
  • <ul>…</ul>
    Denotes the start and end of an unordered list (not numbered).
  • <ol>…</ol>
    Denotes the start and end of an unordered list (numbered).
  • <li>
    A dot before the start.
  • <p>
    paragraph.

Class and Interface Tangs

  • @author
  • @version
  • @see
    Generates a link to the specified class or method, appear in a special “See Also” section of the generated Javadoc.
  • @since
    Used to indicated the version number of your release in which this class first appeared.
  • @deprecated
  • @serial
  • {@link reference label}
  • {@linkplain reference label}
  • {@docRoot}

待續……

No responses yet

Dec 02 2007

SCJD 備考中

Published by under 老人修電腦

自從大學專題做完之後就很少碰 Java了,再加上去年忙得亂七八糟,工作、入伍、出國,大概忘了一大半了吧,趁著要回台灣開刀靜養的時間,來準備準備 SCJD 吧。

sun-micro-java
我猜放 SUN 的 Logo 應該沒人認識,放 Java 咖啡杯應該大家會覺得熟悉些,這就是我要考的 JAVA 證照

JavaCertPath
Java 證照流程

相較於 SCJD,SCJP 好考多了,當初考 SCJP 時就直接抓本書努力K下去就跑去考了,SCJP 只有筆試,而考 SCJD 分兩個階段:assignment and essay。

assignment 的部份,SUN 會給一題實做題,然後就開始拼命 coding,時間無限制,寫到你高興為止。而第二階段筆試的部份,就得跑去寫些 essay,一來確保前面的 program 不是找槍手寫的,二來問問看你對這個 project 的一些選擇問題,至於問什麼問題,等我去考了才知道 XDD

至於 SCJD 的參考書部份,我是抓 Andrew Monkhouse & Terry Camerlengo 的 SCJD Exam with J2SE 5, Second Edition 來讀,這本書寫的很清楚,還在努力複習中,把丟掉的找找回來。

SCJD 跟 SCJP 還有一點很大的不同,就是在報名費 = =,SCJP 是 USD $200,而 SCJD 則要 USD $450,所以 SCJD 一定要一次考上,要不然,囧大了 Orz

No responses yet