Skip to content

Commit 9ccf0c1

Browse files
committed
Doc: Update grammar
1 parent 7592557 commit 9ccf0c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

03_java/02_getting_started.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ The Java [`main`](#main) method is the entry point for executing a Java program.
8686

8787
### `public`
8888

89-
This is an access modifier. It gives intructions on the type of access available in the `main` method. `public` allows the JRE (Java Runtime Environment) access to execute the `main` method. To see it in action, let us try to remove it from the `main` method:
89+
This is an access modifier. It gives intructions on the type of access available in the `main` method. `public` allows the `main` method to b **globally accessible**. A non-public `main` method cannot be executed by any program To see it in action, let us try to remove it from the `main` method:
9090

9191
![Remove public keyword](images/02_getting_started/public_missing.png)
9292

@@ -95,7 +95,7 @@ Notice VS Code throws the error `Error: Main method not found. Please define the
9595

9696
### `static`
9797

98-
When we run a Java program for the first time, there is no object of the class that is present. We, therefore, need to use `static` to instruct JVM to lod the class into memory and then call `main` without creating an instance of that class.
98+
When we run a Java program for the first time, there is no object of the class that is present. We, therefore, need to use `static` to instruct JVM to load the class into memory and then call `main` without creating an instance of that class.
9999

100100
![Missing static](images/02_getting_started/missing_static.png)
101101

0 commit comments

Comments
 (0)