1z0-808 Exam Question 21
Given the code fragments:

Which code fragment, when inserted at line n1, enables the code to print Hank?

Which code fragment, when inserted at line n1, enables the code to print Hank?
1z0-808 Exam Question 22
Given the code fragment:

What is the result if the integer aVar is 9?

What is the result if the integer aVar is 9?
1z0-808 Exam Question 23
Given the code fragment:

What is the result?

What is the result?
1z0-808 Exam Question 24
Given:
class Sports {
int num_players;
String name, ground_condition;
Sports(int np, String sname, String sground){
num_players = np;
name = sname;
ground_condition = sground;
}
}
class Cricket extends Sports {
int num_umpires;
int num_substitutes;
Which code fragment can be inserted at line //insert code here to enable the code to compile?
class Sports {
int num_players;
String name, ground_condition;
Sports(int np, String sname, String sground){
num_players = np;
name = sname;
ground_condition = sground;
}
}
class Cricket extends Sports {
int num_umpires;
int num_substitutes;
Which code fragment can be inserted at line //insert code here to enable the code to compile?
1z0-808 Exam Question 25
Given:

And given the code fragment:

What is the result?
4W 100 Auto

And given the code fragment:

What is the result?
4W 100 Auto
