Examlex

Solved

What Are the Values of X and Y After Executing

question 37

Multiple Choice

What are the values of x and y after executing the code snippet below?
public static void swap(int a, int b) {
int t = a;
a = b;
b = t;
}
public static void main(String[] args)
{
int x = 10;
int y = 11;
swap(x, y) ;
}


Definitions:

Juvenile Arrests

The act of apprehending individuals under the age of 18 by law enforcement agencies for suspected criminal activity.

Separate But Equal

A doctrine that justified segregation, suggesting that separate facilities for different races could be equal, but was invalidated by civil rights laws.

Supreme Court

is the highest judicial body in a country, typically having the ultimate appellate jurisdiction over all other courts and, in some cases, original jurisdiction in a few matters.

Public Schools

Educational institutions that are funded and operated by the government, providing free education to students.

Related Questions