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.
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.