Java is a programming language expressly designed for use in the distributed environment of the Internet. It was designed to have the "look and feel" of the C++ language, but it is simpler to use than C++ and enforces an object-oriented programming model. Java can be used to create complete applications that may run on a single computer or be distributed among servers and clients in a network. It can also be used to build a small application module or applet for use as part of a Web page. Applets make it possible for a Web page user to interact with the page.
Text Editors
- Notepad ++
- Eclipse
- Netbean
- Notepad
First java program Hello World
----------------------------------------
public class HelloWorld{
public static void main(String[] args){
System.out.println("Hello World!....");
}
}
Result the program
------------------------
Hello World!....
Second Java Program Hello World Print 10 time
------------------------------------------------------------
public class HelloWorld2{
public static void main(String[] args){
//Now here we using for loop that's why we print Hello World 10 time
for(int i=0; i<=10; i++){
System.out.println("Hello World!....");
}
}
}
Result the program
----------------------
Hello World!....
Hello World!....
Hello World!....
Hello World!....
Hello World!....
Hello World!....
Hello World!....
Hello World!....
Hello World!....
Hello World!....
I hope do you like this first java tutorial so friend wait for my next java program. i will be upload soon new java program,