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

Will the below code compile and run successfully?

public class Test {
    public static void main(String[] args) {
        displayMessage();
    }

    void displayMessage() {
        System.out.println("Hello, World!");
    }
}