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;
          }
        

6 12
  • 6 6
  • 12 6
  • 12 12

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.