A
Q. What will be the output of the following Java code?
class output
{
public static void main(String args[])
{
String c = "Hello i love java";
int start = 2;
int end = 9;
char s[]=new char[end-start];
c.getChars(start,end,s,0);
System.out.println(s);
}
}
- Correct Answer - Option(D)
- Views: 17
- Filed under category Java
- Hashtags:
Discusssion
Login to discuss.