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

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

Question

Given the code fragment:

. public static void main(string[] args) {

int x = 5;
while (isAvailable(x)) {
System. out. print (x);

. public static boolean isAvailable (int x)

return x-- > 0 ? true: false;
}

{

Which modification enables the code to print 54321?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

A.