Skip to content

Commit e452544

Browse files
Update Hello.java
1 parent 10d5ccb commit e452544

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Hello.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11

22
// 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
36

47
public class Hello { // this is a block
58

0 commit comments

Comments
 (0)