package suncertify.db;
public interface DBAccess
{
// Reads a record from the file. Returns an array where each
// element is a record value.
public String [] readRecord(long recNo)
throws RecordNotFoundException;
Regards, George
SCJP, SCJD, SCWCD, SCBCD
SCJP, SCJD, SCWCD, SCBCD
Originally posted by Terry Martinson:
George - when you say not to modify it in any way, do you also mean that we shouldn't change their comments to javadoc style?
Or do you just mean to leave their basic info in the comment as is and ok to change to appropriate javadoc style?
TJ
Regards, George
SCJP, SCJD, SCWCD, SCBCD
SCJP, SCJD, SCWCD, SCBCD
If it's a runtime exception it isn't a checked exception, so you needn't include it in the throws list. Right?
maybe you should look into creating a new interface and then adapt the new interface to the one provided by Sun.
Regards, George
SCJP, SCJD, SCWCD, SCBCD
parseInt
public static int parseInt(String s)
throws NumberFormatException
Parses the string argument as a signed decimal integer...
Parameters:
s - a String containing the int representation to be parsed
Returns:
the integer value represented by the argument in decimal.
Throws:
NumberFormatException - if the string does not contain a parsable integer.
Jacques<br />*******<br />MCP, SCJP, SCJD, SCWCD
Jacques<br />*******<br />MCP, SCJP, SCJD, SCWCD
One minor point: if you document the MyRuntimeException using the javadoc @throws, then if you subsequently run DocCheck (Sun's check tool that makes sure everything has a javadoc comment that needs one, and among other things, tries to verify the javadoc comment against the code that's being commented) it will complain that you have a @throws MyRuntimeException but that exception is not actually listed in the throws clause of the method declaration.
Does anyone know of a precedence/example in SUN's API where Runtime exceptions are documented in the class methods but they do not appear in the throw clause.
ice is for people that are not already cool. Chill with this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
|