1. Home
  2. Computer Science MCQs
  3. JAVA
  4. Which method signature lets the JVM start a standalone…

Added 2 Nov 2026

Which method signature lets the JVM start a standalone Java application?

  1. private static void main(String[] args)
  2. public void main(String[] args)
  3. public static void main(String[] args) Correct answer
  4. public static int main(String[] args)

Correct answer

C. public static void main(String[] args)

15 views

MCQSEXAM

Explanation

The JVM looks for a public static void main(String[] args) method. It must be public so the JVM can access it, static so no object is needed, and void because it returns nothing.

Reference

Asked in: NTS, PPSC, OCA Java

Preparing for an exam?

Doubts & discussion

Not sure why the answer is C? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More JAVA MCQs

Practise all JAVA MCQs

Similar MCQs