What is Java?
Java allows you to play online games, chat with people around the world, calculate your mortgage interest, and view images in 3D, just to name a few. It's also integral to the intranet applications and other e-business solutions that are the foundation of corporate computing.nerating HTML pages.
First Java Program:-
../ The smallest Java program possible
public class HelloWorld
public static void main(String args)
Step to Run this Program:-
Write above code on notepad and save it with helloworld.java name.
1-To Run this program you need java to install on your computer if you dont have download it from here
2-After installing java set classpath (step is given below):-
- Goto My computer properties -> Advanced -> Environment variable
- Select path and click Edit
- Add there your java installation directory bin folder path and click ok
- Now classpath is set for java
3-Goto Start ->Run -> cmd.
4-Goto that directory where you save helloworld.java file with "cd directoryname" command.
5-Then type javac helloworld.java.
6-Then type java helloworld.
7-The system should write "Hello World" on the command line.