Free Oracle 1Z0-803 Exam Dumps Questions & Answers
| Exam Code/Number: | 1Z0-803Join the discussion |
| Exam Name: | Java SE 7 Programmer I |
| Certification: | Oracle |
| Free Question Number: | 216 |
| Publish Date: | Aug 18, 2026 |
| # of views: | 3900 |
|
|
|
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?
Given:
public class TestOperator {
public static void main(String[] args) {
int result = 30 -12 / (2*5)+1;
System.out.print("Result = " + result);
} }
What is the result?


