📚 Practice Mode

Basics of Java Programming

Learn at your own pace with hints and detailed explanations

1 / 14
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