Java is one of the most popular programming language . Java is 100% object oriented programming means in java every program must contain atleast one class.
Java contains very rich libraries which are called packages.
Today we will say Hello world to java.. So are you ready...
First go to oracle website and download the JDK.
http://www.oracle.com/technetwork/java/javase/downloads/index.html
After downloading install JDK.
Now create a file name as Hello.java
here is hello word program code..
class Hello{
public static void main(String[ ] arg){
System.out.println("Hello Java");
}
}
Now copy this file and paste in java bin folder.
now go to Run and write cmd, then DOS will be open
in DOS set the path for bin file of java. Use the CD command for set the path
write command cd\
cd :\ cd program files
cd:\ program files\cd java
cd:\ program files\java\cd bin
cd:\ program fies\java\bin
cd:\ program fies\java\bin/javac Hello.java
cd:\ program fies\java\bin\java Hello
output
Java contains very rich libraries which are called packages.
Today we will say Hello world to java.. So are you ready...
First go to oracle website and download the JDK.
http://www.oracle.com/technetwork/java/javase/downloads/index.html
After downloading install JDK.
Now create a file name as Hello.java
here is hello word program code..
class Hello{
public static void main(String[ ] arg){
System.out.println("Hello Java");
}
}
Now copy this file and paste in java bin folder.
now go to Run and write cmd, then DOS will be open
in DOS set the path for bin file of java. Use the CD command for set the path
write command cd\
cd :\ cd program files
cd:\ program files\cd java
cd:\ program files\java\cd bin
cd:\ program fies\java\bin
cd:\ program fies\java\bin/javac Hello.java
cd:\ program fies\java\bin\java Hello
output
No comments:
Post a Comment