1Z0-808: Java SE 8 Programmer I
1Z0-808: Java SE 8 Programmer I practice questions, page 6 of 10, with answer review and explanations.
Question 26
Given the code fragment: What is the result?
- [Robb, Rick, Bran]
- [Robb, Rick]
- [Robb, Bran, Rick, Bran]
- An exception is thrown at runtime.
Question 27
Given: What is the result?
- C B A
- C
- A B C
- Compilation fails at line n1 and line n2
Question 28
Given: What is the result?
- 3 4 5 6
- 3 4 3 6
- 5 4 5 6
- 3 6 4 6
Question 29
Given the code fragment: Which code fragment, when inserted at line 3, enables the code to print 10:20? A. B. C. D.
Question 30
Given the code fragment: What is the result?
- A B C Work done
- A B C D Work done
- A Work done
- Compilation fails