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)- A2% (1)
- B15% (6)
- C78% (32)
- D5% (2)
Community Discussion
No community discussion yet for this question.