Java   View all facts   Glossary   Help
syntactic unit > clause
Next syntactic unitcomment    Upsyntactic unit    Previous syntactic unitaccess unit   

clause comparison table
Subject have example have syntax be part of have purpose see also is a subtopic of indicate
implements clause
public class AnimatedSign extends javax.swing.JApplet
implements Runnable {
//...
}
className implements Interface1 (,Interface2, Interface3 ...)
 to indicate that a class implements an interface Interfacesthat a class contains methods for each of the operations specified by the interface
throws clause
// A method definition with a throws 
public void open_file() throws IOException {
// Statements here that might generate an uncaught java.op.IOException
}
throws exceptionClassName
method definitionto specify the type(s) of exception(s) that might be generated when a method is runthrows statementException Handling 

Next syntactic unitcomment    Upsyntactic unit    Previous syntactic unitaccess unit