الرجوع
تسجيل الدخول
هذه نسخة مؤرشفة قديمة من الموقع انتقل إلى كاتوديمي ←

What is the output of the following Java code snippet?

public class Car {
    public int speed = 60;

    public void showSpeed() {
        System.out.println(speed);
    }

    public static void main(String[] args) {
        Car myCar = new Car();
        myCar.showSpeed();
    }
}