Number of apples

Report a typo

What does the following code print?

final int numberOfOranges = 1000;
int numberOfApples = numberOfOranges;
numberOfApples = 2000;

System.out.println(numberOfApples);

Write the result of the output.

Enter a number
___

Create a free account to access the full topic