Question 51

Given the following code fragment:

What is the result if the integer value is 33?
  • Question 52

    Given the following main method:

    What is the result?
  • Question 53

    Given the code fragment:
    public class ForTest {
    public static void main(String[] args) {
    int[] array = {1, 2, 3};
    for ( foo ) {
    }
    }
    Which three code fragments, when replaced individually for foo, enables the program to compile?
  • Question 54

    Given:

    And the commands: Javac Jump.java
    Java Jump crazy elephant is always
    What is the result?
  • Question 55

    Given the code fragment:

    What is the result?