1z0-808 Exam Question 287

Given:

And:

What is the result?
  • 1z0-808 Exam Question 288

    Given the code fragment:

    What is the result?
  • 1z0-808 Exam Question 289

    What is the result?
    boolean log3 = ( 5.0 != 6.0) && ( 4 != 5);
    boolean log4 = (4 != 4) || (4 == 4);
    System.out.println("log3:"+ log3 + \nlog4" + log4);
  • 1z0-808 Exam Question 290

    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 Exam Question 291

    Which three statements describe the object-oriented features of the Java language? (Choose three.)