ExamVeda
Login
Home
71
If an expression contains double, int, float, long, then the whole expression will be promoted into which of these data types?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
72
What will be the output of the following Java program?
class dynamic_initialization 
{
    public static void main(String args[]) 
    {
        double a, b;
        a = 3.0;
        b = 4.0;
  double c = Math.sqrt(a * a + b * b);
  System.out.println(c);
    } 
}
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
73
Which of these can be returned by the operator &?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
74
Which data type value is returned by all transcendental math functions?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
75
What is the prototype of the default constructor of this Java class?
public class prototype { }
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
76
What will be the output of the following Java program, if we run as "java main_arguments 1 2 3"?
class main_arguments 
{
    public static void main(String [] args) 
    {
        String [][] argument = new String[2][2];
        int x;
        argument[0] = args;
        x = argument[0].length;
        for (int y = 0; y < x; y++) 
            System.out.print(" " + argument[0][y]);              
    }
}
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
77
Which of these literals can be contained in float data type variable?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
78
What will be the output of the following Java code?
class A 
{
    final public int calculate(int a, int b) { return 1; } 
} 
class B extends A 
{ 
    public int calculate(int a, int b) { return 2; } 
} 
 public class output 
 {
    public static void main(String args[]) 
    { 
        B object = new B(); 
        System.out.print("b is " + b.calculate(0, 1));  
    } 
}
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
79
What will be the output of the following Java code snippet?
 enum Levels 
{
    private TOP,
 
    public MEDIUM,
 
    protected BOTTOM;
}
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
80
How to format date from one form to another?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board