441). Which of these class contains only floating point functions?

[A]Math
[B]Process
[C]System
[D]Object

Show Answer

443). What is the value of ā€œdā€ in the following Java code snippet?
double d = Math.round ( 2.5 + Math.random() );

[A]2
[B]3
[C]4
[D]2.5

Show Answer

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

[A]0
[B]3
[C]3.0
[D]3.1

Show Answer

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

[A]true
[B]flase
[C]3.1
[D]4.5

Show Answer

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

[A]2.0
[B]4.0
[C]8.0
[D]9.0

Show Answer