What will be printed by this code?
public static void main(String [] args){ int number = 6; int secondNumber = changeNumber (number); System.out.print(number + " " + secondNumber); } public static int changeNumber(int number){ number = 12; return number; }
The variable number is set to 6, then a second number is set to the result of "changeNumber" where 6 is passed as a parameter.