previous | start | next

Self Check

  1. Which are the most commonly used number types in Java?
  2. When does the cast (long) x yield a different result from the call Math.round(x)?
  3. How do you round the double value x to the nearest int value, assuming that you know that it is less than 2 · 109?

previous | start | next