Does a Java program need a class?

yes , you need minimum one class . Show activity on this post. JAVA required at least one class in a program because at the time of execution of Java programs we needed to provide the name of a class which contains the main () method.

Sizin İçin Seçtik  How do you identify a class interface?

Leave a Reply

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