-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
51 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
|
||
|
||
[pointer](pointer.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
|
||
|
||
## Dangling pointer | ||
|
||
A dangling pointer is a (non-NULL) pointer which points to unallocated (already freed) memory area. | ||
|
||
[wiki](https://en.wikipedia.org/wiki/Dangling_pointer) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
|
||
[install](backend/java/install.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
|
||
|
||
## Code | ||
|
||
```java | ||
class Test | ||
{ | ||
public static void main(String []args) | ||
{ | ||
System.out.println("My First Java Program."); | ||
} | ||
}; | ||
``` | ||
|
||
|
||
## Compile | ||
|
||
To compile the program, we must run the Java compiler (javac), with the name of the source file on the “command prompt” like as follows | ||
|
||
If everything is OK, the `javac` compiler creates a file called “Test.class” containing the byte code of the program. | ||
|
||
```sh | ||
javac HelloWorld.java | ||
``` | ||
|
||
## Execute | ||
|
||
- Create the program by typing it into a text editor and saving it to a file – HelloWorld.java. | ||
- Compile it by typing “javac HelloWorld.java” in the terminal window. | ||
- Execute (or run) it by typing “java HelloWorld” in the terminal window. | ||
|
||
```sh | ||
java HelloWorld | ||
``` | ||
|
||
## Resource | ||
|
||
[GfG | hello world ex](https://www.geeksforgeeks.org/java-hello-world-program/) |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters