Programming duh Flashcards
a completely “abstract class” that is used to group related methods with empty bodies
interface
process of hiding certain details and showing only essential information to the user.
Data abstraction
is a restricted class that cannot be used to create objects (to access it, it must be inherited from another class).
Abstract class
can only be used in an abstract class, and it does not have a body. The body is provided by the subclass (inherited from).
Abstract method
non-access modifier, used for classes and methods.
abstract keyword
maintains an internal buffer of 8192 characters.
BufferedReader
Occurs when a numeric calculation goes wrong
ArithmeticError
Occurs when trying to access an index number that does not exist in an array
ArrayIndexOutOfBoundsException
Occurs when a class file cannot be accessed
ClassFormatError
Occurs when trying to access a class that does not exist
ClassNotFoundException
Occurs when an element is added or removed from iterables
ConcurrentModificationException
Occurs when a file cannot be accessed
FileNotFoundException
Occurs when there’s been a change in a base class after a child class has already been initialized
IncompatibleClassChangeError
Occurs when entering wrong input (e.g. text in a numerical input)
InputMismatchException
Occurs when a Thread is interrupted while waiting/sleeping
InterruptedException
Occurs when the Serialization runtime observes a problem with a class
InvalidClassException
Occurs when an input or output operation fails
IOException
Occurs when trying to create an array with negative size
NegativeArraySizeException
Occurs when the class is not found at runtime
NoClassDefFoundError
Occurs when trying to access a class field/variable that does not exist
NoSuchFieldException
Occurs when trying to access a class method that does not exist
NoSuchMethodException
Occurs when trying to access an object referece that is null
NullPointerException
Occurs when it is not possible to convert a specified string to a numeric type
NumberFormatException
Occurs when an exception occurs at runtime
RuntimeException
Occurs when trying to access a character in a String that does not exist
StringIndexOutOfBoundsException
Occurs when a type cannot be found
TypeNotPresentException
Occurs when when an illegal argument is passed to a method
IllegalArgumentException
Occurs when when a method is called at an illegal time
IllegalStateException
lass of the java.io package can be used to read data (in characters) from files.
FileReader