ExamVeda
Login
Home
41
What will be the output of the following Java program?
package pkg;
class output 
{
    public static void main(String args[])
    { 
        StringBuffer s1 = new StringBuffer("Hello");
        s1.setCharAt(1, x);
        System.out.println(s1);
    }
}
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
42
Which of these exceptions handles the situations when an illegal argument is used to invoke a method?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
43
What will be the output of the following Java program?
class Output 
{
     public static void main(String args[]) 
    {
        double x = 2.0;  
        double y = 3.0;
        double z = Math.pow( x, y );
        System.out.print(z);
    }
}
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
44
Which of the following constant are defined in Character wrapper?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
45
What will happen if we provide concrete implementation of method in interface?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
46
Which of these class provides various types of rounding functions?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
47
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, 0, b, 0, a.length);
        System.out.print(new String(a) + " " + new String(b));
    }
}
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
48
Which environment variable is used to set java path?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
49
Which system property stores installation directory of JRE?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
50
Which of these coding techniques is used by method isDefined()?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board