Professional Documents
Culture Documents
Learning Objectives: To understand the method of installing and configuring JAVA and testing
the same with the help of a simple program.
Theory:
Step 1: Verify that it is already installed or not
Open the executable file which you have just downloaded and follow the steps.
Step 3: Just Choose Development Tools and click Next.
Right click on "this PC". It can be named as "My Computer" in some systems.
Choose "properties" from the options.
Now Java Path has been set up. Open the Command prompt and type "javac" In case
you have already open up the command prompt, I suggest you to close the existing
window and reopen it again.
import java.io.*;
public class Hello
{
Public Static void main (String args[])
{
System. out. Println(“Hello World”);
}
}
OUTPUT:
Experiment 01(b)–understanding the identifiers and keywords by
calculating square of a number.
In any programming language, identifiers are used for identification purposes. In Java, an identifier
can be a class name, method name, variable name, or label.
For example :
OUTPUT:
Course Outcome:
CO1: Understand about Object Oriented Programming.
Conclusion:
Viva Questions:
1. What is byte code and class file?
2. What is JVM?
3. What is meant by object-oriented programming?