11. What will be the output of the following Java program?
import java.lang.System;
class Output
{
public static void main(String args[])
{
byte a[] = { 65, 66, 67, 68, 69, 70 };
byte b[] = { 71, 72, 73, 74, 75, 76 };
System.arraycopy(a, 2, b, 3, a.length - 4);
System.out.print(new String(a) + " " + new String(b));
}
}
import java.lang.System;
class Output
{
public static void main(String args[])
{
byte a[] = { 65, 66, 67, 68, 69, 70 };
byte b[] = { 71, 72, 73, 74, 75, 76 };
System.arraycopy(a, 2, b, 3, a.length - 4);
System.out.print(new String(a) + " " + new String(b));
}
}
12. Does code Segment loads the java code?
13. Which of the following is a method of wrapper Float for converting the value of an object into byte?
14. Which of these Exceptions is thrown by loadClass() method of ClassLoader class?
15. Which of these interface is not a member of java.io package?
16. Which of these package is used for graphical user interface?
17. How to read a classpath file?
18. toRadian() and toDegree() methods were added by which version of Java?
19. Which of the following exceptions is thrown by every method of Runtime class?
20. Which of these is a method to clear all the data present in output buffers?
Read More Section(Interfaces and Abstract Classes)
Each Section contains maximum 100 MCQs question on Interfaces and Abstract Classes. To get more questions visit other sections.