A
Q. What could be output of the following fragment of code?
Code:
public class Test{
public static void main(String args[]){
String x = "hellow";
int y = 9;
System.out.println(x += y);
}
}
public static void main(String args[]){
String x = "hellow";
int y = 9;
System.out.println(x += y);
}
}
- Correct Answer - Option(B)
- Views: 18
- Filed under category Java
- Hashtags:
Discusssion
Login to discuss.