Question 61

Given the Person class with age and name along with getter and setter methods, and this code fragment:

What will be the result?
  • Question 62

    Given this enum declaration:

    Examine this code:
    System.out.println(Letter.values()[1]);
    What code should be written at line 5 for this code to print 200?
  • Question 63

    Given:

    What is the type of x?
  • Question 64

    Given:

    What is the result?
  • Question 65

    Given the code fragment:

    Which can replace line 11?