logo

Crowdly

Browser

Add to Chrome

Gegeben ist folgende Klasse: public class Test { public static void metho...

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

Gegeben ist folgende Klasse:

public class Test {

public static void methode1() {

synchronized (Test.class) {

System.out.println("1");

System.out.println("2");

}

}

public static void methode2() {

synchronized (Test.class) {

System.out.println("a");

System.out.println("b");

}

}

}

Die beiden Methoden werden in unterschiedlichen Threads ausgeführt. Welche Reihenfolgen sind für die Ausgabe der Buchstaben und Ziffern möglich?

100%
100%
More questions like this

Want instant access to all verified answers on elearning.tgm.ac.at?

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

Browser

Add to Chrome