tailieunhanh - Sun certified programmer developer for java 2 study guide phần 3

B và D đều đánh giá đến 32. B là chuyển các bit ngay sau đó bằng cách sử dụng sang số bit đã được ký kết và , nhưng kể từ khi các số bắt đầu là tích cực được duy trì ký. Một thứ đánh giá đến 8, C trông giống như 2 đến 5 sức mạnh, | Self Test 79 11. 12. 13. 14. 15. 16. public void countUp for int x 6 x counter x-- counter counter what is the result A. 0 12 B. 12 3 C. 0 12 3 D. 12 3 4 E. Compilation fails F. An exception is thrown at runtime 8. Given the following 1. import . 2. public class NewTreeSet2 extends NewTreeSet 3. public static void main String args 4. NewTreeSet2 t new NewTreeSet2 5. 6. 7. 8. protected class NewTreeSet 9. void count 10. for int x 0 x 7 x x 11. x 12. 13. 14. what is the result A. 0 2 4 B. 0 2 4 6 C. Compilation fails at line 4 D. Compilation fails at line 5 E. Compilation fails at line 8 F. Compilation fails at line 10 80 Chapter 2 Declarations and Access Control 9. Given the following 1. 2. public class NewTreeSet extends 3. public static void main String args 4. t new 5. 6. 7. public void clear 8. TreeMap m new TreeMap 9. 10. 11. which two statements added independently at line 1 allow the code to compile Choose two. A. No statement is required B. import . C. D. import E. import 10. Which two are valid declarations within an interface Choose two. A. public static short stop 23 B. protected short stop 23 C. transient short stop 23 D. final void madness short stop E. public Boolean madness long bow F. static char madness double duty 11. Which of the following class level nonlocal variable declarations will not compile A. protected int a B. transient int b 3 C. public static final int c D. volatile int d E. private synchronized int e Self Test 81 Interface Implementation Sun Objective 12. Given the following 1. interface DoMath 2. double getArea int rad 3. 4. interface MathPlus 5. double getVol int b int h 6. 7. 8. which two code fragments inserted at lines 7 and 8 will compile Choose two. A. class AllMath extends DoMath double getArea int r B. interface AllMath implements .

TỪ KHÓA LIÊN QUAN
crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.