A
Q. What will be the output of the following Java program?
Code:
class String_demo
{
public static void main(String args[])
{
int ascii[] = { 65, 66, 67, 68};
String s = new String(ascii, 1, 3);
System.out.println(s);
}
}
{
public static void main(String args[])
{
int ascii[] = { 65, 66, 67, 68};
String s = new String(ascii, 1, 3);
System.out.println(s);
}
}
- Correct Answer - Option(B)
- Views: 21
- Filed under category Java
- Hashtags:
Discusssion
Login to discuss.