Java   View all facts   Glossary   Help
syntactic unit > definition > class definition
Next definitioninterface definition    Updefinition    Previous definitionvariable definition   

class definition comparison table
Subject have syntax have example have purpose has definition have store in contain is a subtopic of is a kind of have part
definition   A statement that reserves storage (for data) or provides implementation (for methods).   Variables and Data Typessyntactic unit declaration
class definition
public abstract final class nameOfClass extends Super implements Interfaces
{
ClassBody
}
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World!");
}
}
to define a classA definition that specifies a class and includes the class body1 or more constructors for the classsource file with the same name as the class and extension .javaclass methods, class variables, instance methods, instance variablesClassesdefinitionclass declaration, class body

Next definitioninterface definition    Updefinition    Previous definitionvariable definition