Introduction Of Programming (JAVA)



What is Java ?
Java is a programming language and a platform. Java is high level,robust,secured and object-oriented Programming language. Any hardware or software environment in which a program runs is known as A platform.Since java has its own run-time environment (JRE) and API,it is called platform.

Use Of Java
1. Desktop Application
2. Web Application
3. Enterprise Application
4. Mobile
5.Embedded System
6.Smart Card
7.Robotics
8.Games etc.

Type Of Java Application 
1. Standalone 
2. Web
3. Enterprise
4. Mobile

Features Of Java
1. Simple
2. Object Oriented
3. Robust
4. Platform Independent
5. Secure
6. Multi-Threading
7. Architectural Neutral
8. Portable
9. High Performance 

What is JVM ?
1. A specification where working of Java Virtual Machine is specified. But implementation provider is independent to choose the algorithm. Its implementation has been provided by Oracle and other companies.

2. An implementation Its implementation is known as JRE (Java Runtime Environment).

3. Run-time Instance Whenever you write java command on the command prompt to run the java class, an instance of JVM is created.

Basic Syntax
1. Case Sensitivity
2. Class Names : Class names in first letter should be in Uppercase. Program name &                                  Class name should be the same.
3. Method Names : Method names should start with a lower case letter.
4. Program File Name : File name should exactly match the class name.
5. Declare a Class in java.
6. Public : Access modifier.
7.Static is a keyword,if we declare any method as static.
8.Void : Return type of the method.
9.Main is represent startup of the program.
10.String[]args is used for command argument.
11.Print and Println

Simple program :- 

public class HelloWorld
{
  public static void main(String[]args)
  {
     System.out.println("Hello World");
  }



Comments