412). Which of these methods is used to check for infinitely large and small values?

[A]isInfinite()
[B] isNaN()
[C]Isinfinite()
[D] IsNaN()

Show Answer

414). What will be the output of the following Java code?
    class isinfinite_output 
    {
        public static void main(String args[]) 
        {
            Double d = new Double(1 / 0.);  
            boolean x = d.isInfinite();
            System.out.print(x);
        }
    }

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

Show Answer

415). What will be the output of the following Java code?
    class isNaN_output 
    {
        public static void main(String args[]) 
        {
            Double d = new Double(1 / 0.);  
            boolean x = d.isNaN();
            System.out.print(x);
        }
    }

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

Show Answer

416). What will be the output of the following Java code?
    class binary 
    {
         public static void main(String args[]) 
         {
             int num = 17;
             System.out.print(Integer.toBinaryString(num));
         }
    }

[A]1001
[B]10011
[C]11011
[D]10001

Show Answer