ExamVeda
Login
Home
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));
    }
}
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
12
Does code Segment loads the java code?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
13
Which of the following is a method of wrapper Float for converting the value of an object into byte?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
14
Which of these Exceptions is thrown by loadClass() method of ClassLoader class?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
15
Which of these interface is not a member of java.io package?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
16
Which of these package is used for graphical user interface?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
17
How to read a classpath file?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
18
toRadian() and toDegree() methods were added by which version of Java?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
19
Which of the following exceptions is thrown by every method of Runtime class?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
20
Which of these is a method to clear all the data present in output buffers?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board