logo

Crowdly

Browser

Add to Chrome

¿Cuál es la salida?   class Persona { static int edad = 20; } ...

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

¿Cuál es la salida?

 

class Persona {

static int edad = 20;

}

public class Test {

public static void main(String[] args) {

    Persona p1 = new Persona();

    Persona p2 = new Persona();

    p2.edad = 30;

    System.out.println(p1.edad);

}

}

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