Chapter contents ] [ Course contents ] [ Write to us! webmaster@keller.com ] [ Home ] [ Curriculum ]

Chapter 3

Doc comments

  • What are the limitations of conventional comments in source code?
  • What information is present in the code itself, which would be useful for documentation?
  • What things would you like to see documented in an API?
Examples of special tags recognized by javadoc
TagApplies toWhat it doesUsage example
@see classname class, interface, method Adds a hyperlinked See Also entry @see java.lang.String
@deprecated text class, interface, method Adds a comment that this API should not longer be used @deprecated Replaced by setBounds(int, int, int)
@param name description method Documents a parameter @param index The index of the desired character
@return description method Adds a description of the return value @return The desired character

Exercise

Look at the javadoc home page. What other tags are available besides those listed above?

Review


Chapter contents ] [ Course contents ] [   ] [ Home ] [ Curriculum ]
http://www.keller.com/java/chapter_3/doc/comments.html
Updated Wednesday, 31-Oct-2001 14:19:06 CST

Copyright © 2001
Dan Keller Technical Services
4500 19th St., San Francisco
California, USA 94114
tel: 415 / 861-4500