Lab 4 Gradesheet for: More on Handling/Avoiding  Exceptions

Name ___________________   Points Possible 105    Points Earned ___

 

 

 Some Possible Exceptions

Max Possible (25)

Earned Points

1

ArithmeticException

5

 

2

ArrayIndexOutOfBounds Exception

5

 

3

ClassCastException

5

 

4

ClassNotFoundException

5

 

5

FileNotFoundException

5

 

6

IllegalArgumentException

5

 

7

InputMismatchException

5

 

8

IOException

5

 

9

MalformedURLException

5

 

10

NegativeArraySizeException

5

 

11

NullPointerException

5

 

12

NumberFormatException

5

 

13

StringIndexOutOfBoundsException

5

 

14

 

5

 

15

 

5

 

 

If program bombs, no credit can be earned for exceptions which follow the one that was not caught.

Exception #

Handled via a Catch (max 25)

clear user  interface (max 25)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Exception #

Avoided (max 15)

clear user  interface (max 15)

 

 

 

 

 

 

 

 

 

Under clear user interface:  says what error is earns 3 

                                             echoing bad data earns 2

 

Possible Style Deductions   (-1 point each)

Declare and instantiate or initialize in same step

___ spelling errors

Poor indentation

{ } mis-aligned

 

 

Inadequate internal commenting

Missing Java docs

No ending message

wrong naming convention

unneeded statements

importing java.lang

no spaces around binary operators

unneeded variables

 

unnecessary initializations

Poor variable names

 

specific import in addition to entire package import