logo

Crowdly

Browser

Add to Chrome

¿Cuál será la salida del siguiente código? class Test {     static int x = 1...

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

¿Cuál será la salida del siguiente código?

class Test {

    static int x = 10;

    static void incrementar() {

        x++;

    }

}

public class Main {

    public static void main(String[] args) {

        Test.incrementar();

        System.out.println(Test.x);

    }

}

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