Programming - Exception Handling
You Are Here :: Home > JAVA > Exception Handling - General Questions
37. |
When assign object of incorrect type to element of array called _____________________.
|
A. |
IndexOutOfBoundsException |
B.
|
ArrayStoreException |
C.
|
NegativeArraySizeException
|
D.
|
NullPointerException
|
|
Answer: Option B
Explanation:
When assign object of incorrect type to element of array called ArrayStoreException. |
|
38. |
When using a negative size of array is called _________________________.
|
A. |
IndexOutOfBoundsException |
B.
|
ArrayStoreException |
C.
|
NegativeArraySizeException
|
D.
|
NullPointerException
|
|
Answer: Option C
Explanation:
When using a negative size of array is called NegativeArraySizeException |
|
39. |
When refer to object as a null pointer is called _________________________.
|
A. |
IdexOutOfBoundsException |
B.
|
ArrayStoreException |
C.
|
NegativeArraySizeException
|
D.
|
NullPointerException
|
|
Answer: Option D
Explanation:
When refer to object as a null pointer is called NullPointerException |
|
40. |
When violate security.Caused by security manager is __________________________.
|
A. |
IndexOutOfBoundsException |
B.
|
ArrayStoreException |
C.
|
NegativeArraySizeException
|
D.
|
SecurityException
|
|
Answer: Option D
Explanation:
When violate security.Caused by security manager is SecurityException |
|
« prev