Java Basics: Part 3 - Exceptions
Manuel Oriol
Java Basics: Part 3 - Exceptions Manuel Oriol Throwable The - - PowerPoint PPT Presentation
Java Basics: Part 3 - Exceptions Manuel Oriol Throwable The Throwable interface is meant to represent computational events that can interrupt the current computation Computation can occur after the event is handled 84 Exception
Manuel Oriol
represent computational events that can interrupt the current computation
handled
84
to be treated.
exception, it is required that it declares so (modulo conformance). Except for RuntimeExceptions.
85
AnnotationTypeMismatchException, ArithmeticException, ArrayStoreException, BufferOverflowException, BufferUnderflowException, CannotRedoException, CannotUndoException, ClassCastException, CMMException, ConcurrentModificationException, DOMException, EmptyStackException, EnumConstantNotPresentException, EventException, IllegalArgumentException, IllegalMonitorStateException, IllegalPathStateException, IllegalStateException, ImagingOpException, IncompleteAnnotationException, IndexOutOfBoundsException, JMRuntimeException, LSException, MalformedParameterizedTypeException, MissingResourceException, NegativeArraySizeException, NoSuchElementException, NullPointerException, ProfileDataException, ProviderException, RasterFormatException, RejectedExecutionException, SecurityException, SystemException, TypeNotPresentException, UndeclaredThrowableException, UnmodifiableSetException, UnsupportedOperationException ...
86
AWTError, CoderMalfunctionError, FactoryConfigurationError, LinkageError, ThreadDeath, TransformerFactoryConfigurationError, VirtualMachineError
87
by using:
(non-runtime) have to indicate it:
88
89
Manuel Oriol
inputs and outputs a single treatment with different results
91
Input Output data Stream
receive information
the inner part of the communication
92
93
note: printf is a variable arguments method...
94
array (http://java.sun.com/developer/ JDCTechTips/2005/tt1018.html)
95
96
97
String readline()
98
socket...)
99
100
101
102
103
104
105
106
http://heim.ifi.uio.no/~trygver/themes/mvc/mvc-
108
component
109
menus, buttons, text fields...)
110
needed
111
112
Your application code (e.g. calculator component or model
(getContentPane())
113
component)
114
115
116
XML
118
Synchro
in Java
119
Synchro
Java
120
Synchro
Java