Javatpoint Logo

tell me the output of this program with explanation

By: vipink*** On: Tue Mar 14 17:49:08 IST 2017     Question Reputation0 Answer Reputation0 Quiz Belt Series Points0  0Blank User

class B
{
public static void main (String[] args)
{
new B().go("hi",1);
new B().go("hi","world",2);
}
public void go(String...y,int x)
{
System.out.println(y[y.length-1]+"");

}
// your code goes here
}

Up0Down