13.
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);
}
}
class multithreaded_programing 
{
    public static void main(String args[]) 
    {
        new newthread();        
    }
}

14.
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();
}
}
class multithreaded_programing 
{
    public static void main(String args[]) 
    {
        new newthread();        
    }
}

15.
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(b.equals(a));
    }
}

18.
What will be the output of the following Java program?
class Output 
{
    public static void main(String args[]) 
    {
        Integer i = new Integer(257);  
        byte x = i.byteValue();
        System.out.print(x);
    }
}

20.
Which of the following is an incorrect statement regarding the use of generics and parameterized types in Java?

Read More Section(Interfaces and Abstract Classes)

Each Section contains maximum 100 MCQs question on Interfaces and Abstract Classes. To get more questions visit other sections.