Programming duh Flashcards

1
Q

a completely “abstract class” that is used to group related methods with empty bodies

A

interface

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

process of hiding certain details and showing only essential information to the user.

A

Data abstraction

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

is a restricted class that cannot be used to create objects (to access it, it must be inherited from another class).

A

Abstract class

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

can only be used in an abstract class, and it does not have a body. The body is provided by the subclass (inherited from).

A

Abstract method

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

non-access modifier, used for classes and methods.

A

abstract keyword

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

maintains an internal buffer of 8192 characters.

A

BufferedReader

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Occurs when a numeric calculation goes wrong

A

ArithmeticError

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Occurs when trying to access an index number that does not exist in an array

A

ArrayIndexOutOfBoundsException

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Occurs when a class file cannot be accessed

A

ClassFormatError

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Occurs when trying to access a class that does not exist

A

ClassNotFoundException

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Occurs when an element is added or removed from iterables

A

ConcurrentModificationException

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Occurs when a file cannot be accessed

A

FileNotFoundException

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Occurs when there’s been a change in a base class after a child class has already been initialized

A

IncompatibleClassChangeError

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Occurs when entering wrong input (e.g. text in a numerical input)

A

InputMismatchException

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Occurs when a Thread is interrupted while waiting/sleeping

A

InterruptedException

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Occurs when the Serialization runtime observes a problem with a class

A

InvalidClassException

17
Q

Occurs when an input or output operation fails

A

IOException

18
Q

Occurs when trying to create an array with negative size

A

NegativeArraySizeException

19
Q

Occurs when the class is not found at runtime

A

NoClassDefFoundError

20
Q

Occurs when trying to access a class field/variable that does not exist

A

NoSuchFieldException

21
Q

Occurs when trying to access a class method that does not exist

A

NoSuchMethodException

22
Q

Occurs when trying to access an object referece that is null

A

NullPointerException

23
Q

Occurs when it is not possible to convert a specified string to a numeric type

A

NumberFormatException

24
Q

Occurs when an exception occurs at runtime

A

RuntimeException

25
Q

Occurs when trying to access a character in a String that does not exist

A

StringIndexOutOfBoundsException

26
Q

Occurs when a type cannot be found

A

TypeNotPresentException

27
Q

Occurs when when an illegal argument is passed to a method

A

IllegalArgumentException

28
Q

Occurs when when a method is called at an illegal time

A

IllegalStateException

29
Q

lass of the java.io package can be used to read data (in characters) from files.

A

FileReader