Question 19 of 76 from exam 1Z0-808: Java SE 8 Programmer I

Question 19 of 76 from exam 1Z0-808: Java SE 8 Programmer I

Question

Given the code fragment:

public class Test{

void readCard(int cardNo) throws Exception {
System. out. println ("Reading Card");
}

void checkCard(int cardNo) throws RuntimeBxception { // line nl
system. out. println ("Checking Card");
}

public static void main(string[] args) {
Test ex = new Test ();
int cardNo = 12344;
ex. checkCard (cardNo) ; //line n2
ex. readCard (cardNo) ; //line n3

What is the result?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D. E.

D.