1z0-809 Exam Question 101
Given the code fragment

Which code fragments, inserted independently, enable the code compile?

Which code fragments, inserted independently, enable the code compile?
1z0-809 Exam Question 102
Given the code fragment:

Assume that the value of now is 6:30 in the morning.
What is the result?

Assume that the value of now is 6:30 in the morning.
What is the result?
1z0-809 Exam Question 103
Given the code fragment:

And given the requirements:
* If the value of the qty variable is greater than or equal to 90, discount = 0.5
* If the value of the qty variable is between 80 and 90, discount = 0.2 Which two code fragments can be independently placed at line n1 to meet the requirements?


And given the requirements:
* If the value of the qty variable is greater than or equal to 90, discount = 0.5
* If the value of the qty variable is between 80 and 90, discount = 0.2 Which two code fragments can be independently placed at line n1 to meet the requirements?

1z0-809 Exam Question 104
Given:

What is the result?

What is the result?
1z0-809 Exam Question 105
Given:
1. abstract class Shape {
2. Shape ( ) { System.out.println ("Shape"); }
3. protected void area ( ) { System.out.println ("Shape"); }
4. }
5.
6. class Square extends Shape {
7. int side;
8. Square int side {
9./* insert code here */
10. this.side = side;
11. }
12. public void area ( ) { System.out.println ("Square"); }
13. }
14. class Rectangle extends Square {
15. int len, br;
16. Rectangle (int x, int y) {
17. /* insert code here */
18. len = x, br = y;
19. }
20. void area ( ) { System.out.println ("Rectangle"); }
21. }
Which two modifications enable the code to compile?
1. abstract class Shape {
2. Shape ( ) { System.out.println ("Shape"); }
3. protected void area ( ) { System.out.println ("Shape"); }
4. }
5.
6. class Square extends Shape {
7. int side;
8. Square int side {
9./* insert code here */
10. this.side = side;
11. }
12. public void area ( ) { System.out.println ("Square"); }
13. }
14. class Rectangle extends Square {
15. int len, br;
16. Rectangle (int x, int y) {
17. /* insert code here */
18. len = x, br = y;
19. }
20. void area ( ) { System.out.println ("Rectangle"); }
21. }
Which two modifications enable the code to compile?