We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10d5ccb commit e452544Copy full SHA for e452544
src/Hello.java
@@ -1,5 +1,8 @@
1
2
// In a file, there can be multiple classes but there will be just one public class
3
+// multiple classes in the same Java file can have a main method
4
+// Java does NOT automatically start from the main method of the public class.
5
+// It starts from the class you explicitly tell the JVM to run
6
7
public class Hello { // this is a block
8
0 commit comments