51.
What will be the output of the following Java program?
class Output 
{
     public static void main(String args[]) 
    {
        double x = 3.1;  
        double y = 4.5;
        double z = Math.max( x, y );
        System.out.print(z);
    }
}

52.
What will be the output of the following Java code?
class Output
{
    public static void main(String args[])
    {
  Double i = new Double(257.578123456789);  
        float x = i.floatValue();
        System.out.print(x);
    }
}

55.
Which of these is an correct way of defining generic class?

58.
What will be the output of the following Java program?
class exception_handling 
{
        static void throwexception() throws ArithmeticException 
        {        
            System.out.print("0");
            throw new ArithmeticException ("Exception");
        }
        public static void main(String args[]) 
        {
        try 
        {
            throwexception();
        }
        catch (ArithmeticException e) 
        {
                System.out.println("A");
        }
    }
}

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.