Java   View all facts   Glossary   Help
object > exception
Next objectGUI event object    Upobject    Previous objectcurrent object   

exception comparison table
Subject have syntax rule add declare protect name after access extend provide place in represent inherit contain have access mode have example instantiate you implement import from order be a descendant of define specify by have access modifier use have syntax override be a member of have benefit have part have has definition be
built-in exception     all instance variables of all objects of its class   any entity to which you can associate properties and behaviourinstance methods and instance variables from
  • the class to which it belongs
  • all that class's superclasses
                 state that is maintained in its variables distinct from every other object even if they contain the same data
checked exception     all instance variables of all objects of its class   any entity to which you can associate properties and behaviourinstance methods and instance variables from
  • the class to which it belongs
  • all that class's superclasses
                 state that is maintained in its variablesA kind of exception that Java checks for at compile time and for which a Java program contains handlersdistinct from every other object even if they contain the same data
programmer-created exception class
bold = mandatory
italic = non-terminal
normal font = optional
0 or more methods to the methods it inherits from its superclassa list of variables, called instance variables, corresponding to data that will be present in each instanceits members from access by other classes or objects using an access modifierthe internals of a computer system such as 'Record', 'Table', 'Data', 'Structure', or 'Information'any public class in other packagesonly one superclassimplementation for all its instance methods unless the class is abstractits own source fileseveral similar objectsbehaviour from its superclassdata associated with each object 
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World!");
}
}
create an instance of itmore than one interfacea packageelements as follows:
  1. class variables
  2. instance variables
  3. constructors
  4. the most important public methods
  5. methods that are simply used to access variables
  6. private methods
Object classa class type whose instances are the values of the class type1 class definitionan implements clause to declare that it contains methods for each of the operations specified by the interface
class classname
{ // declarations of variables
// declarations of constructors
// declarations of other methods with public ones first
}
methods that are inherited from the class's superclass1 named package rather than the default packageconstructora unique name since somebody in the future might want to import the packages containing both classes and hence create a name clash the unit of data abstraction in an object-oriented program
unchecked exception     all instance variables of all objects of its class   any entity to which you can associate properties and behaviourinstance methods and instance variables from
  • the class to which it belongs
  • all that class's superclasses
                 state that is maintained in its variablesAn exception that is not checked , which is of the class RuntimeException and its subclasses, or of the class Error and its subclassesdistinct from every other object even if they contain the same data

Next objectGUI event object    Upobject    Previous objectcurrent object