ExamVeda
Login
Home
1
Which of these is a method can generate a boolean output?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
2
What will be the output of the following Java program?
class Output 
{
    public static void main(String args[]) 
    {
        char a[] = {'a', '5', 'A', ' '};   
        System.out.print(Character.isDigit(a[0]) + " ");
        System.out.print(Character.isWhitespace(a[3]) + " ");
        System.out.print(Character.isUpperCase(a[2]));
    }
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
3
Which of these keywords is used to define packages in Java?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
4
Which of the following reference types cannot be generic?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
5
What will be the output of the following Java code snippet?
int a = random.nextInt(7) + 4;
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
6
Which of these classes is not included in java.lang?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
7
What will be the output of the following Java program?
import java.util.*;
class LOCALE_CLASS
{
    public static void main(String args[])
    {
        Locale obj = new Locale("INDIA") ;
        System.out.print(obj.getCountry());
    }
}
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
8
What will be the output of the following Java program?
class Output
{
    public static void main(String args[]) 
    {
 String x = Boolean.toString(false);
    }
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
9
What will be the output of the following Java program?
class X 
{
    int a;
    double b;
}
class Y extends X 
{
int c;
}
class Output 
{
    public static void main(String args[]) 
    {
        X a = new X();
        Y b = new Y();
        Class obj;
        obj = b.getClass();
        System.out.print(obj.isInstance(a));
    }
}
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board