Passing a wrapper class

Report a typo

What will this application print?

public class PassArgumentsDemo {
    public static void main(String[] args) {
        Integer javaReleaseYear = 1995;

        updateBirthYear(javaReleaseYear);

        System.out.println(javaReleaseYear);
    }

    public static void updateBirthYear(Integer year) {
        year++;
    }
}
Enter a number
___

Create a free account to access the full topic