Analyze the following code: public class Test {  public stat…

Questions

Anаlyze the fоllоwing cоde: public clаss Test {  public stаtic void main(String[] args) {    System.out.println(xMethod(5, 500L));  }   public static int xMethod(int n, long l) {    System.out.println("int, long");    return n;  }   public static long xMethod(long n, long l) {    System.out.println("long, long");    return n;  }}