/*
This is a simple Java program.
*/
class Example
{
// program begins with a call to main().
public static void main(String args[]) {
System.out.println("This is a simple Java program.");
}
}
Save this with same name as that of class. In this case it is example.java
Running a program in java takes place in two important steps:
- Compiling a program by writing the code javac file-name.java
- Running a program by writing the code java file-name
Tuesday
//
Labels:
java
//
0
comments
//
0 comments to "SIMPLE JAVA PROGRAM"
Powered by Blogger.
Blog Archive
-
▼
2011
(50)
-
▼
August
(12)
- INTRODUCTION TO JAVA
- ABSTRACTION
- INHERITANCE
- ENCAPSULATION
- SIMPLE JAVA PROGRAM
- BABYLONIAN METHOD FOR DETERMINING A SQUARE ROO...
- TRIGONOMETRIC FUNCTIONS CALCULATED USING MCLAUREN ...
- PROJECT ON RESERVATION
- CALCULATOR USING JAVA
- MANAGEMENT OF SCHOOL RECORDS USING JAVA
- MULTITHREADED MATRIX MULTIPLICATION IN JAVA
- PROJECT ON LIBRARY SYSTEM IN JAVA
-
▼
August
(12)
Post a Comment