✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Betrachte folgendes Codestück:
public class Konto {
private double kontostand = 0;
public synchronized void einzahlen(double betrag) {
this.kontostand += betrag;
}
public void abheben(double betrag) {
this.kontostand -= betrag;
}
public double getKontostand() {
return this.kontostand;
}
}
Welche der folgenden Aussagen dazu sind wahr oder falsch?