Question 36

Given:

What must be added in line 1 to compile this class?
  • Question 37

    Given:

    What is the result?
  • Question 38

    Given:

    Which two methods modify field values? (Choose two.)
  • Question 39

    Given the content from the course.txt file:

    Which code fragment at line 1 prints the lines that contain Java from the course.txt file?
    A)

    B)

    C)

    D)

    E)
  • Question 40

    Given:

    Which two independent changes will make the Main class compile? (Choose two.)