DO IT THAT NOW PLZ, IT IS URGENT
Posted: Tue May 24, 2022 8:01 am
DO IT THAT NOW PLZ, IT IS URGENT
23. In the following description of the try catch finally structure, the wrong one is A. The try statement block is the code that may throw an exception. If one of the statements in the block throws an exception, the subsequent statements will not continue to execute, but go to catch for exception type matching B. A try block can correspond to multiple catch blocks to capture multiple exception classes C. Finally statement blocks can be skipped in some cases D. Finally statement blocks always execute 24. Which of the following is not a checked exception? (A) A. NullPointerException B. ClassNotFoundException C. FileNotFoundException D. NoSuchFieldException 25. After executing this program, which result is correct? ( ) public class Test public static void main(String[] args) { System.out.println(89>>1): } A. 44 B. 45 C. 88 D. 90 26. What is the output of following code? ( ) public class Test public static void main(String[] args) { int n=4; int x=0; do{ }while(u++<7); System.out.println(n); } A.7 B.6 C. 8 D. n 27. Given that "int[]a-new int[100];”, which of the following array element is incorrect? ( ) A. a[0] B. a[1] C. a[99] D. a[100] x++;
23. In the following description of the try catch finally structure, the wrong one is A. The try statement block is the code that may throw an exception. If one of the statements in the block throws an exception, the subsequent statements will not continue to execute, but go to catch for exception type matching B. A try block can correspond to multiple catch blocks to capture multiple exception classes C. Finally statement blocks can be skipped in some cases D. Finally statement blocks always execute 24. Which of the following is not a checked exception? (A) A. NullPointerException B. ClassNotFoundException C. FileNotFoundException D. NoSuchFieldException 25. After executing this program, which result is correct? ( ) public class Test public static void main(String[] args) { System.out.println(89>>1): } A. 44 B. 45 C. 88 D. 90 26. What is the output of following code? ( ) public class Test public static void main(String[] args) { int n=4; int x=0; do{ }while(u++<7); System.out.println(n); } A.7 B.6 C. 8 D. n 27. Given that "int[]a-new int[100];”, which of the following array element is incorrect? ( ) A. a[0] B. a[1] C. a[99] D. a[100] x++;