Which of the following expressions is correct?

Which of the following expressions is correct?


A. Rational.doubleValue();
B. Rational.doubleValue("5/4");
C. new Rational(5, 4).doubleValue();
D. new Rational(5, 4).toDoubleValue();
E. new Rational(5, 4).intValue();

The correct answer is CE


Java

Learn More Multiple Choice Question :