Java
T
point
Home
Core Java
Servlet
JSP
Struts2
Mail API
Hibernate
Spring
Android
Design Pattern
Projects
Interview Q
View All Questions
Ask New Question
tell me the output of this program with explanation
By:
vipink***
On:
Tue Mar 14 17:49:08 IST 2017
0
0
0
0
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
}
0