Basics of Java Programming

Casual Mode - Take your time!

1 / 14
Correct
0
Incorrect
0
Score
0%
Multiple Choice

What is the output of following Java program?

public class Test
{
public static void main(String[] args)
{
double i=45.6567;
float j=i;
System.out.println( j );
}
}

  1. 45
  2. 45.6567
  3. 0.6567
  4. Run time Exception
  5. None of the above
Change Mode