Single Choice Not Set

QWhat will the output of the following program?
public class Test{
      public static void main(String args[]){
            float f = (1 / 4) * 10;
            int i = Math.round(f);
            System.out.println(i);
      }
}

ID: #2019 Java Data Types and Variables - MCQ 1,131 views
Question Info
#2019Q ID
Not SetDifficulty
Java Data Types and Variables - MCQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A 2
  • C 3
  • D 2.5
Correct Answer

Explanation

0

Share This Question

Challenge a friend or share with your study group.