logo

Crowdly

Browser

Add to Chrome

¿Qué salida produce este código? class A { int x = 5; }   pu...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

¿Qué salida produce este código?

class A {

int x = 5;

}

 

public class Test {

public static void main(String[] args) {

A a1 = new A();

A a2 = a1;

a2.x = 10;

System.out.println(a1.x);

}

}

0%
0%
0%
0%
More questions like this

Want instant access to all verified answers on moodle.elpuig.xeill.net?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome