Why does the main method have to come before the Case method in this case please? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why does the main method have to come before the Case method in this case please?

12th Dec 2016, 6:19 AM
Soaga Kingsley
Soaga Kingsley - avatar
3 Answers
+ 2
Java program starts with main. Always. You can put case inside it or inside of other class.
12th Dec 2016, 8:18 AM
Andrey Kitsa
Andrey Kitsa - avatar
0
quesrion???
12th Dec 2016, 7:06 AM
manish rawat
manish rawat - avatar
0
The Java compiler when he start's executing he executes from the main
12th Dec 2016, 11:55 PM
Moishy Nussbaum