MCQOPTIONS
Saved Bookmarks
| 1. |
What is the output of this program?import java.io.*; public class Chararrayinput_Example { public static void main(String[] args) { String object = "InterviewMania"; int len = object.length(); char array[] = new char[len]; object.getChars(0, len, array, 0); CharArrayReader chararray = new CharArrayReader(array); CharArrayReader chararray0 = new CharArrayReader(array, 1, 4); int K; int L; try { while((K = chararray.read()) == (L = chararray0.read())) { System.out.print((char)K); } } catch (IOException e) { e.printStackTrace(); } } } |
| A. | Interview |
| B. | InterviewMania |
| C. | Mania |
| D. | All of these |
| E. | None of these |
| Answer» F. | |