ExamVeda
Login
Home
81
If we try to add Enum constants to a TreeSet, what sorting order will it use?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
82
What is the base of BigDecimal data type?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
83
What will be the output of the following Java statement?
class output {
        public static void main(String args[]) 
        {
            double a, b,c;
            a = 3.0/0;
            b = 0/4.0;
            c=0/0.0;
 
	    System.out.println(a);
            System.out.println(b);
            System.out.println(c);
        } 
    }
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
84
What will be the output of the following Java code?
class booloperators {
    public static void main(String args[]) 
    {
        boolean var1 = true;
  boolean var2 = false;
  System.out.println((var1 & var2));
    } 
}
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
85
What will be the output of the following Java code?
class conversion 
{
    public static void main(String args[]) 
    {
        double a = 295.04;
        int  b = 300;
        byte c = (byte) a;
        byte d = (byte) b;
        System.out.println(c + " "  + d);
    } 
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
86
An expression involving byte, int, and literal numbers is promoted to which of these?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
87
Literal can be of which of these data types?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
88
What is the numerical range of a char data type in Java?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
89
How is Date stored in database?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
90
Which method returns the elements of Enum class?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board