How to write a java program
Dear friends,
Java technology allows you to work and play in a secure computing environment.
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.
Now to write a program java first
Class test
{
public static void main(String[] args)
{
System.out.println("Hello! this is my first java program.");
}
}
- Save this as test.java
- open your command prompt
- type javac test.java
- A class test.class will be created in corresponding directory
- type java test
- It will print Hello! this is my first java program
Comments
Post a Comment