208k views
2 votes
"in program arrays12.java a swap method is called. does the swap method exchange parameter values x and y?"

1 Answer

5 votes

Answer:

The answer is "True".

Step-by-step explanation:

In the given question option is missing, that is "true or false", which can be described as follows:

In the given question, it is declared, that an "arrays12.java" program file is declared So, the class name is "arrays12" because in java class name and the program file name is the same.

  • Inside the class, a swap method is called, that first accepts value.
  • After accepting the value it is defined as another variable, that swap variable values, that's why the answer to this question is true.
User Andrej Slivko
by
7.2k points