Skip to content
Quiz · Operators and expressions · lesson 4 of 8

Quiz — (int) 9.99

What does the program print?

JAVA
public class Main {
    public static void main(String[] args) {
        double price = 9.99;
        int whole = (int) price;
        System.out.println(whole);
    }
}