Object Oriented Programming (OOPs)
© examsiri.com
Question : 3 of 72
Marks:
+1,
-0
Given:
public class Yikes {
  public static void go(Long n) {System.out.println("Long ");}
  public static void go(Short n) {System.out.println("Short ");}
  public static void go(int n) {System.out.println("int ");}
  public static void main(String [] args) {
   short y = 6;
   long z = 7;
   go(y);
   go(z);
  }
}
What is the result?
Go to Question: