1.

What is the output of this program?

public class Result
{
public static void main(String args[])
{
String ch = "Hello i love Interview mania";
int start = 13;
int end = 28;
char str[]=new char[end-start];
ch.getChars(start,end,str,0);
System.out.println(str);
}
}

A. Hello i
B. love Interview
C. love Interview mania
D. Hello i love Interview mania
E. i love Interview mania
Answer» F.


Discussion

No Comment Found

Related MCQs