Question #194031

1. The following code will cause a(n) ___ exception. Please select the correct option "A, B, C, D, or E"


class Sample

{

public static void main(String[] args)

{

int x = 0;

int y = 10;

int z = y/x;

}

}


A. ArithmeticException

B. ArrayIndexOutOfBoundsException

C. StringIndexOutOfBoundsException

D. NullPointerException

E. ClassNotFoundException


Expert's answer

A


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS