Java   View all facts   Glossary   Help
object > exception > unchecked exception > error
Upunchecked exception

error
subjectfact 
errorhas definition An exception that is exempted from compile-time checking because it can occur at many points in the program and recovery from them is difficult or impossible . A Java program declaring such exceptions would be cluttered, pointlessly.added by: WH, source: Specification, 2001-10-19 11:36:40.0
is a subtopic of Exception Handling2001-10-19 11:36:40.0
is a kind of unchecked exceptionadded by: WH, 2001-10-19 11:36:40.0
exception 2001-10-19 11:36:40.0
is thrown when something goes wrong in the execution of a program    2001-10-19 11:36:41.0
see also Exception class    2001-10-19 11:36:41.0
objectcan access all instance variables of all objects of its class2001-10-19 11:37:31.0
can be encapsulated by providing accessor methods2001-10-19 11:37:31.0
can be converted into a string using the toString method    2001-10-19 11:37:31.0
can be referred to without reference to the instance variables contained in it    2001-10-19 11:37:31.0
can be referred to by several different variables at the same time    2001-10-19 11:37:31.0
can communicate with every object to which it has access through its public interface2001-10-19 11:37:31.0
can convert itself to a string representation using the toString method    2001-10-19 11:37:31.0
can model    2001-10-19 11:37:32.0
can notify other objects that a condition variable has changed2001-10-19 11:37:32.0
can receive messages from    2001-10-19 11:37:32.0
can represent any entity to which you can associate properties and behaviour    2001-10-19 11:37:32.0
can return its class using the getClass method2001-10-19 11:37:32.0
can send messages to    2001-10-19 11:37:32.0
can wait on 0 or more condition variables2001-10-19 11:37:32.0
communicates with other objects by sending and receiving messages    2001-10-19 11:37:32.0
has 0 or more instance variables2001-10-19 11:37:32.0
has 0 or more methods called instance methods2001-10-19 11:37:32.0
has behaviour that is specified by its methods    2001-10-19 11:37:32.0
has state that is maintained in its variables    2001-10-19 11:37:32.0
has example of creation String name = new String();2001-10-19 11:37:32.0
has part public interface2001-10-19 11:37:32.0
hides methods from other objects using the 'private' keyword2001-10-19 11:37:32.0
inherits instance methods and instance variables from
  • the class to which it belongs
  • all that class's superclasses
2001-10-19 11:37:32.0
is distinct from every other object even if they contain the same data    2001-10-19 11:37:32.0
is created by
  • declaring and initializing it such that it is created whenever execution enters a particular block, or, in the case of an instance variable, when an instance is created, for example:
    String aString = "some text";
  • or by declaring it and initializing it later using the new operator, for example:
    String aString;
    aString = new String("some text");
2001-10-19 11:37:32.0
shares every instance method of its class with the other instances of its class2001-10-19 11:37:32.0
shares its implementation with other instances of its class2001-10-19 11:37:32.0
shares one copy of each class variable of its class with the other instances of its class    2001-10-19 11:37:32.0
to create you use the new operator2001-10-19 11:37:33.0

Upunchecked exception