ExamVeda
Login
Home
71
Which of these stream contains the classes which can work on character stream?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
72
Which of the following is the correct way of importing an entire package 'pkg'?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
73
Why are generics used?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
74
What will be the output of the following Java program?
import java.lang.reflect.*;
class Additional_packages 
{	 
     public static void main(String args[]) 
     {
   try
         {
       Class c = Class.forName("java.awt.Dimension");
 Method methods[] = c.getMethods();
 for (int i = 0; i < methods.length; i++)
     System.out.println(methods[i]);
   }
   catch (Exception e)
         {
             System.out.print("Exception");
         }
    }
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
75
Which of these is a super class of wrappers Double and Float?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
76
Can "abstract" keyword be used with constructor, Initialization Block, Instance Initialization and Static Initialization Block.
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
77
What will be the output of the following Java program?
class Output 
{
    public static void main(String args[]) 
    {
        int a = Character.MAX_VALUE;
        System.out.print((char)a);
    }
}
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
78
Which of these methods can be used to check whether the given value is a number or not?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
79
Which of these method of Locale class can be used to obtain country of operation?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
80
What will be the output of the following Java program?
class newthread implements Runnable 
{
Thread t1,t2;
    newthread() 
    {
        t1 = new Thread(this,"Thread_1");
        t2 = new Thread(this,"Thread_2");
        t1.start();
        t2.start();
}
public void run() 
    {
        t2.setPriority(Thread.MAX_PRIORITY);	
  System.out.print(t1.equals(t2));
    }    
}
class multithreaded_programing 
{
    public static void main(String args[]) 
    {
        new newthread();        
    }
}
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board