Java Reference
In-Depth Information
Implementing an interface:
public class <name> implements <interface> {
...
}
Specifying inheritance relationship and implementing interfaces:
public class <name> extends <superclass name>
implements <interface name>, <interface name>, ..., <interface name> {
...
}
Interface definition:
public interface <name> {
public <type> <name>(<type> <name>, ..., <type> <name>);
...
public <type> <name>(<type> <name>, ..., <type> <name>);
}
Abstract class:
public abstract class <name> {
...
}
Abstract method:
public abstract <type> <name>(<type> <name>, ..., <type> <name>);
return statement:
return <expression>;
throw statement:
throw <exception>;
assert statement:
assert <boolean test>;
Array declaration:
<element type>[] <name> = new <element type>[<size>];
 
Search WWH ::




Custom Search