Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 19

JAVA PROGRAMMING

Characteristics of JAVA
• Simple
• Object-Oriented
• Portable
• Platform independent
• Secured
• Robust
• Architecture neutral
• Interpreted
• High Performance
• Multithreaded
• Distributed
• Dynamic
Java Environment Components
• JDK(Java Development Kit)
• JRE(Java Runtime Environment)
• JVM: JVM (Java Virtual Machine) is an abstract machine.
JAVA ENVIRONMENT
A simple helloworld program

import java.io.*;

public class helloworld {

public static void main(String[] args)

System.out.println("Hello, World!");

}
Filename and Extension

Class name and filename should be same

So, the helloworld application should be stored as

?.java

helloworld.java
Public

Anyone can access it.


Static

You can run this method without creating an instance with main
void

Doesn't return any value.


main

Entry point for JAVA console application


SO 4:DEPLOY A BASIC JAVA
APPLICATION USING COMMAND
LINE AND NETBEANS IDE.
SETUP ENVIRONEMNT VARIABLE
SETUP ENVIRONEMNT VARIABLE
SETUP ENVIRONEMNT VARIABLE
1. Save the program
2. Open Command Prompt
3.Navigate to the correct folder
4.Compile the program
5.Run the program

You might also like