Question PRG-JAVA-0002
EasyWhich method is the entry point of a Java application?
- A.
void run(String args)
- B.
static int main()
- C.
Show answer and explanation
Answer: C
The JVM looks for this exact signature to start the program.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Java question
Which method is the entry point of a Java application?
void run(String args)
static int main()
Answer: C
The JVM looks for this exact signature to start the program.
public static void main(String[] args)
public void start()