Java programs:
Before concluding this lesson let uses see how Java programs such as like we have already seen which it looks almost such as a C++ program.
- Java is case sensitive. It differentiates among lower and upper case letters. For instance pay, Pay and PAY are taken as three variant variable names in Java.
- Each Java statement must end with a semi colon. Within one line we generally write only one statement and it ends within a semi colon.
- Compound Sentences could be formed within braces {}.
Let us first see a small Java program that prints the message "Radiant welcomes you to Java world".
class welcomes
{
public static void main(String a[])
{
System.out.println("welcomes you to java world");
}
}
as we have already mentioned A Java is an object oriented programming language. Then, each program declares a class. Here we have defined a class named welcomes.