1z0-808 문제 111

Which two statements are true about Java byte code? (Choose two.)

1z0-808 문제 112

Given the code fragment:

Which code fragment, when inserted at line 9, enables the code to print true?

1z0-808 문제 113

Given the code fragment:

Which code fragment, inserted at line n1, pints The Top element: 30?

1z0-808 문제 114

Given:
class Cake {
int model;
String flavor;
Cake() {
model = 0;
flavor = "Unknown";
}
}
public class Test {
public static void main(String[] args) {
Cake c = new Cake();
bake1(c);
System.out.println(c.model + " " + c.flavor);
bake2(c);
System.out.println(c.model + " " + c.flavor);
}
public static Cake bake1(Cake c) {
c.flavor = "Strawberry";
c.model = 1200;
return c;
}
public static void bake2(Cake c) {
c.flavor = "Chocolate";
c.model = 1230;
return;
}
}
What is the result?

1z0-808 문제 115

Given:

What is the result?