Which class must be there in Java program?

Yes. In Java you always need one class with the function main to have the JRE run it.

Leave a Reply

Your email address will not be published. Required fields are marked *