ExamVeda
Login
Home
21
What is the order of variables in Enum?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
22
How to get UTC time?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
23
Which class is a library of functions to perform arithmetic operations of BigInteger and BigDecimal?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
24
What will be the output of the following Java code snippet?
class A
{
 
}
 
enum Enums extends A
{
    ABC, BCD, CDE, DEF;
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
25
What will be the output of the following Java program?
class mainclass {
    public static void main(String args[]) 
    {
        boolean var1 = true;
  boolean var2 = false;
  if (var1)
      System.out.println(var1);
  else
      System.out.println(var2);
   } 
}
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
26
What is the limitation of toString() method of BigDecimal?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
27
What will be the output of the following Java code snippet?
enum Enums
{
    A, B, C;
 
    private Enums()
    {
        System.out.println(10);
    }
}
 
public class MainClass
{
    public static void main(String[] args)
    {
        Enum en = Enums.B;
    }
}
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board