Can we create a program without a main method in Java?


No. For Java based application, JVM will complain about missing main method.

Updated on: 30-Jul-2019

2K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements