الرجوع
تسجيل الدخول

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();
    }
}