A person says that he compiled a java class successfully without even having a main method in it? Is it possible?

By drakula david in 22 Sep 2023 | 11:33 am
drakula david

drakula david

Student
Posts: 128
Member since: 22 Sep 2023

A person says that he compiled a java class successfully without even having a main method in it? Is it possible?

22 Sep 2023 | 11:33 am
0 Likes
divas goyal

divas goyal

Student
Posts: 453
Member since: 22 Sep 2023

  - No, it's not possible to compile a Java class successfully without a `main` method. The `main` method is the entry point for executing Java programs.

23 Sep 2023 | 04:15 pm
0 Likes

Report

Please describe about the report short and clearly.