Using the Math Class

AP Computer Science A· difficulty 2/5

int m = Math.min(8, 3);
System.out.println(m);

What is printed?

  • A

    8

  • B

    3

    check_circle
  • C

    11

  • D

    5

Explanation

Math.min returns the smaller of its two arguments, which is 3.

Want 10 more like this — adaptive to your weak spots?

Related questions