Java programming | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Java programming

Please guys help to understand why java programming is beginning with Public class main?

1st Jan 2023, 1:30 PM
ABDUR RAHMAN
ABDUR RAHMAN - avatar
1 Answer
+ 1
It will be explained better in Lesson 27 of the Sololearn Java course. In a nutshell, the main method is a mandatory part of every Java program, with a prescribed signature, it is where the program execution begins. Your program can contain multiple classes, and one of them must have a main method.
1st Jan 2023, 5:15 PM
Tibor Santa
Tibor Santa - avatar