Operators

© examsiri.com
Question : 18 of 23
 
Marks: +1, -0
Given:
class Eggs {
  int doX(Long x, Long y) { return 1; }
  int doX(long... x) { return 2; }
  int doX(Integer x, Integer y) { return 3; }
  int doX(Number n, Number m) { return 4; }
  public static void main(String[] args) {
   new Eggs().go();
  }
  void go() {
   short s = 7;
   System.out.print(doX(s,s) + " ");
   System.out.println(doX(7,7));
} }

What is the result?
Go to Question: