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());
    }
}

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);
     }
}

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();        
    }
}

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.