Question 1

Given the code fragment:

What is the output?
  • Question 2

    Identify two valid data types for the operands of the addition (+) operator?
  • Question 3

    Identify two class variables.
  • Question 4

    What is the meaning of "write once, run anywhere" in Java?
  • Question 5

    Given the classes:

    Which two modifications, independently, enable the Salad.java file to compile?