Courseiva
Question 193 of 481
Java Basics and SyntaxmediumMultiple ChoiceObjective-mapped

1Z0-811 Java Basics and Syntax Practice Question

A method is declared as: public static void main(String[] args) { }. Which statement is true?

⚠ Common exam trap

Oracle often tests the distinction between static and instance members, and the trap here is that candidates mistakenly think static methods can be overridden like instance methods, or that the `main` method's access modifier can be changed without breaking JVM entry-point requirements.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

The method can be called without creating an instance of the class.

The `static` modifier in the method signature means the method belongs to the class itself, not to any instance. Therefore, it can be invoked using the class name (e.g., `ClassName.main(args)`) without creating an object of the class. This is a fundamental characteristic of static methods in Java.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • The method can be overridden in a subclass.

    Why it's wrong here

    Static methods cannot be overridden, only hidden.

  • The method can return an int.

    Why it's wrong here

    main must be void for standard entry.

  • The method can be called without creating an instance of the class.

    Why this is correct

    It is static, so it belongs to the class.

  • The method can be private.

    Why it's wrong here

    Must be public to be accessible by JVM.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 30, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

This 1Z0-811 practice question is part of Courseiva's free Oracle certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the 1Z0-811 exam.