I hava Java dudes | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I hava Java dudes

Which is the difference between the main class and the others? Thrre will be the code to be executed??

13th Nov 2016, 2:20 AM
Galo Exequiel
Galo Exequiel - avatar
1 Answer
+ 1
Main class and the others are same it's just a name what makes a class different is when it has a public static void main (fyi usually, we simplify it with #psvm, it's a shortcut on netbeans n also on intellij idea). when a class has #psvm, it becomes a main class of the project and will be executed first when you run it that's will make it different with other class
14th Nov 2016, 11:14 AM
Raizal I N Pregnanta
Raizal I N Pregnanta - avatar