560). Which of the following exceptions is thrown by every method of Runtime class?

[A]IOException
[B]SystemException
[C]SecurityException
[D]RuntimeException

Show Answer

561). Which of the following exceptions is thrown by every method of Runtime class?

[A]IOException
[B]SystemException
[C]SecurityException
[D]RuntimeException

Show Answer

562). Which of these methods returns the total number of bytes of memory available to the program?

[A] getMemory()
[B]TotalMemory()
[C]SystemMemory()
[D] getProcessMemory()

Show Answer

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

[A]X
[B]Y
[C]class X
[D]class Y

Show Answer

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

[A]0
[B]1
[C]true
[D]false

Show Answer

566). 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.isInstance(a));
        }
    }

[A]0
[B]1
[C]true
[D]false

Show Answer