21. Given the following java code, the correct description of the usage of "super" is (). class Student extends Person p

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

21. Given the following java code, the correct description of the usage of "super" is (). class Student extends Person p

Post by answerhappygod »

21 Given The Following Java Code The Correct Description Of The Usage Of Super Is Class Student Extends Person P 1
21 Given The Following Java Code The Correct Description Of The Usage Of Super Is Class Student Extends Person P 1 (109.02 KiB) Viewed 14 times
21 Given The Following Java Code The Correct Description Of The Usage Of Super Is Class Student Extends Person P 2
21 Given The Following Java Code The Correct Description Of The Usage Of Super Is Class Student Extends Person P 2 (109.02 KiB) Viewed 14 times
only java expert Solve ASAP
21. Given the following java code, the correct description of the usage of "super" is (). class Student extends Person public Student() { super(); } 3 A. Used to call the super () method defined in the Person class B. Used to call the super () method defined in the Student class C. The parameterless construction method used to call the Person class D. Used to call the first constructor of the Person class 22. The purpose of using anonymous classes or methods is (). A. Improve the running speed of program code B. Improve the security strength of program code C. Improve the reusability of program code D. Simplify program code 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 { x++; }while(n++<7); System.out.println(n); } } A. 7 B. 6 C. 8 D. n

21. Given the following java code, the correct description of the usage of "super" is (). class Student extends Person public Student() { super(); } 3 A. Used to call the super () method defined in the Person class B. Used to call the super () method defined in the Student class C. The parameterless construction method used to call the Person class D. Used to call the first constructor of the Person class 22. The purpose of using anonymous classes or methods is (). A. Improve the running speed of program code B. Improve the security strength of program code C. Improve the reusability of program code D. Simplify program code 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 { x++; }while(n++<7); System.out.println(n); } } A. 7 B. 6 C. 8 D. n
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply