Skip to content
Quiz · Wrappers and equality · lesson 2 of 8

Quiz — parseInt("12a")

What happens when this program is compiled and run?

JAVA
public class Main {
    public static void main(String[] args) {
        int n = Integer.parseInt("12a");
        System.out.println(n);
    }
}