ExamVeda
Login
Home
81
Which of these classes can schedule task for execution in future?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
82
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.getSuperclass());
    }
}
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 program?
class Output 
{
     public static void main(String args[]) 
     {
         int x = 3.14;  
         int y = (int) Math.abs(x);
         System.out.print(y);
     }
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
84
Which of these methods is not defined in both Byte and Short wrappers?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
85
Which of these methods is used to know whether a string contains "true"?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
86
Which of the interface contains all the methods used for handling thread related operations in Java?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
87
Which of these method is a rounding function of Math class?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
88
Which of these is method for testing whether the specified element is a file or a directory?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
89
Which of these methods calls update() method?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
90
What will be the output of the following Java program?
class newthread implements Runnable 
{
Thread t;
    newthread() 
    {
        t = new Thread(this,"My Thread");
        t.start();
}
public void run() 
    {
  System.out.println(t.getName());
}
}
class multithreaded_programing 
{
    public static void main(String args[]) 
    {
        new newthread();        
    }
}
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board