Which of the following statements is false?
a. A finally block is placed after the last catch block.
b. A finally block typically releases resources acquired in the corresponding try block.
c. The finally block and try block can appear in any order.
d. A finally block is optional.
c. The finally block and try block can appear in any order.
You might also like to view...
Given the following method
static void nPrint(String message, int n) { while (n > 0) { System.out.print(message); n--; } } What is k after invoking nPrint("A message", k)? int k = 2; nPrint("A message", k); a. 0 b. 1 c. 2 d. 3
Which statement is false?
a. A List is a Collection. b. A List cannot contain duplicate elements. c. A List is sometimes called a sequence. d. Lists use zero-based indices.