Question 81
Given the code fragment:

Which three lines fail to compile?

Which three lines fail to compile?
Question 82
Given the following class:

And given the following main method, located in another class:

Which three lines, when inserted independently at line n1, cause the program to print a 0 balance?

And given the following main method, located in another class:

Which three lines, when inserted independently at line n1, cause the program to print a 0 balance?
Question 83
Given:

What is the result?

What is the result?
Question 84
Given the code fragment:

What is the result?

What is the result?
Question 85
Given:
public class FieldInit {
char c;
boolean b;
float f;
void printAll() {
System.out.println("c = " + c);
System.out.println("c = " + b);
System.out.println("c = " + f);
}
public static void main(String[] args) {
FieldInit f = new FieldInit();
f.printAll();
}
}
What is the result?
public class FieldInit {
char c;
boolean b;
float f;
void printAll() {
System.out.println("c = " + c);
System.out.println("c = " + b);
System.out.println("c = " + f);
}
public static void main(String[] args) {
FieldInit f = new FieldInit();
f.printAll();
}
}
What is the result?
