nerdexam
Oracle

1Z0-815 · Question #84

Given: public class MainMethod { void main() { System.out.println("one"); } static void main(String args) { System.out.println("two"); } public static void main(String[] args) {…

The correct answer is C. three. See the full explanation below for the reasoning.

Question

Given:

public class MainMethod { void main() { System.out.println("one"); } static void main(String args) { System.out.println("two"); } public static void main(String[] args) { System.out.println("three"); } void mina(Object[] args) { System.out.println("four"); } } What is printed out when the program is excuted?

Options

  • Aone
  • Btwo
  • Cthree
  • Dfour

How the community answered

(41 responses)
  • A
    2% (1)
  • B
    15% (6)
  • C
    78% (32)
  • D
    5% (2)

Community Discussion

No community discussion yet for this question.

Full 1Z0-815 Practice