ExamVeda
Login
Home
91
What will be the output of the following Java code?
class char_increment 
{
    public static void main(String args[]) 
    {
        char c1 = 'D';
        char c2 = 84;
        c2++;
        c1++;
        System.out.println(c1 + " "  + c2);
    } 
}
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
92
Which one is a valid declaration of a boolean?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
93
Which of the following are legal lines of Java code?
1. int w = (int)888.8;
2. byte x = (byte)100L;
3. long y = (byte)100;
4. byte z = (byte)100L;
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
94
BigDecimal is a part of which package?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
95
What is the range of byte data type in Java?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
96
Which of these is an incorrect string literal?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
97
What will be the output of the following Java program?
class evaluate 
{
    public static void main(String args[]) 
    {
        int a[] = {1,2,3,4,5};
  int d[] = a;
  int sum = 0;
  for (int j = 0; j < 3; ++j)
            sum += (a[j] * d[j + 1]) + (a[j + 1] * d[j]);
  System.out.println(sum);
    } 
}
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
98
What will be the output of the following Java code?
class area {
    public static void main(String args[]) 
    {    
         double r, pi, a;
         r = 9.8;
         pi = 3.14;
         a = pi * r * r;
         System.out.println(a);
    } 
}
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
99
What is the replacement of joda time library in java 8?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
100
How to get difference between two dates?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board