Java View all facts Glossary Help |
syntactic unit > definition |
definition comparison table |
Subject | have example | have syntax | occur before | has definition | have purpose | have | store in | contain | is a subtopic of | have part | |
---|---|---|---|---|---|---|---|---|---|---|---|
class definition | public class HelloWorld { | public abstract final class nameOfClass extends Super implements Interfaces | A definition that specifies a class and includes the class body | to define a class | 1 or more constructors for the class | source file with the same name as the class and extension .java | class methods, class variables, instance methods, instance variables | Classes |
| class declaration, class body | |
interface definition | public interface Drawable | public interface InterfaceName extends SuperInterfaces | to define an interface | Interfaces | interface declaration, interface body | ||||||
method definition | int[] makeRange(int lower int upper) { | accessLevel static abstract final native synchronized returnType methodName (parameterList) throws exceptions | calls to that method | to define a method | Methods | ||||||
variable definition | to define a variable | Variables and Data Types | declaration |
Next syntactic unit: expression Up: syntactic unit Previous syntactic unit: declaration