concept class EJava in category java

appears as: class EJava, class EJava, The class EJava
OCA Java SE 8 Programmer I Certification Guide

This is an excerpt from Manning's book OCA Java SE 8 Programmer I Certification Guide.

Twist in the Tale 1.3

One of the programmers, Harry, executed a program that gave the output java one. Now he’s trying to figure out which of the following classes outputs these results. Given that he executed the class using the command java EJava java one one, can you help him figure out the correct option(s)?

  • class EJava {
        static public void main(String[] arguments[]) {
            System.out.println(arguments[0] + " " + arguments[1]);
        }
    }
  • class EJava {
        static public void main(String[] arguments[]) {
            System.out.println(arguments[0] + " " + arguments[1]);
        }
    }