You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: java/1.html
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -73,8 +73,8 @@ <h2>Java Hello World Program</h2><br>
73
73
</center>
74
74
<p>In this tutorial, you will learn to write "Hello World" program in Java. A "Hello, World!" is a simple program that outputs Hello, World! on the screen. Since it's a very simple program, it's often used to introduce a new programming language
75
75
to a newbie.
76
-
<br> Let 's explore how Java "Hello, World!" program works. <br>If you want to run this program on your computer, make sure that Java is properly installed. Also, you need an IDE (or a text editor) to write and edit Java code. For that, check
77
-
<ahref="#"> How to run Java on your computer?</a></p>
76
+
<br> Let 's explore how Java "Hello, World!" program works. <br>If you want to run this program on your computer, make sure that Java is properly installed. Also, you need an IDE (or a text editor) to write and edit Java code.
77
+
</p>
78
78
79
79
80
80
<h5>Hello World Program </h5>
@@ -114,7 +114,7 @@ <h2>How Java "Hello, World!" Program Works?</h2>
114
114
<ol>
115
115
<li><code>// Your First Program</code><br/>
116
116
<br/> In Java, any line starting with<code>//</code> is a comment. Comments are intended for users reading the code to better understand the intent and functionality of the program. It is completely ignored by the Java compiler (an application
117
-
that translates Java program to Java bytecode that computer can execute). To learn more, visit <ahref="/java-programming/comments">Java comments</a>.</li>
117
+
that translates Java program to Java bytecode that computer can execute). .</li>
118
118
<li><code>class HelloWorld { ... }</code><br/>
119
119
<br/> In Java, every application begins with a class definition. In the program, <var>HelloWorld</var> is the name of the class, and the class definition is:
120
120
<pre>
@@ -126,7 +126,7 @@ <h2>How Java "Hello, World!" Program Works?</h2>
126
126
<br/> This is the main method. Every application in Java must contain the main method. The Java compiler starts executing the code from the main method.<br/>
127
127
<br/>
128
128
<strong>How does it work?</strong> Good question. However, we will not discuss it in this article. After all, it's a basic program to introduce Java programming language to a newbie. We will learn the meaning of <code>public</code>,
129
-
<code>static</code>, <code>void</code>, and <ahref="/java-programming/methods">how methods work</a>? in later chapters.<br/>
129
+
<code>static</code>, <code>void</code>, and how methods work? in later chapters.<br/>
130
130
<br/> For now, just remember that the main function is the entry point of your Java application, and it's mandatory in a Java program. The signature of the main method in Java is:
0 commit comments