Over View of Java

Java is object Oriented Programming Language (OOP) and OOP is at core of Java.

Two Paradigms:

All computer programs that consists of two elements
  • Code
  • Data
These two Paradigms that describe how Program is created.
 One is called Process-Oriented model. This technique describe as a program in steps. In this Technique can be thought of code acting on data.

Problem with Process-Oriented Model:

The main problem of this technique are:

  • Code goes larger
  • More Complexity
The second is called Object Oriented Programming. In this Approach manage program data around its data and program can be describe as data controlling access to code.

OOP principle:

The three OOP principle are:
  1. Encapsulation.
  2. Inheritance.
  3. Polymorphism.
These three Principle are work together.

Simple Java Program

/* this is simple Java Program*/
class Example{

// your program start with main()
public static void main(string args[]){
System.out.println("This is Java.");
}
}









Comments

Post a Comment

Popular posts from this blog

Inheritance in Java

Operators in Java Language?

Type Casting or Conversion in Java