J A V A T U T O R I A L
F O R B E G I N N E R S
H O W T O L E A R N J A V A P R O G R A M M I N G
C O N C E P T S
1. Overview
3. OOP's Concept
2. A Simple Main Program
O V E R V I E W
Java is a high-level programming language. Its main feature is a Platform
Independency making it different from other languages.
Platform Independency means Java compiler generates bytecode instead
of machine code. This bytecode can be run on any machine where JVM
is available.
Java
Compiler
Java
Interpreter
Source Code Machine CodeBytecode
O T H E R F E A T U R E S
Object Oriented
Multithreaded
Simple
Robust
Secured
Architecture Neutral
S I M P L E J A V A
P R O G R A M
class Demo
{
public static void main(String args[])
{
System.out.println("Hello World");
}
}
E X E C U T I O N O F
P R O G R A M
To Compile the above code write the following code
To Run the above code write the following code
javac Demo.java
java Demo
O B J E C T O R I E N T E D
C O N C E P T
Object
Encapsulation
Polymorphism
Class
Abstraction
Inheritance
O B J E C T & C L A S S
Object:
Class:
It is a real-time entity that has state and behavior.
It may be physical and logical.
It is a collection of objects. It is a logical entity.
P O L Y M O R P H I S M
.One task is performed by different ways is called polymorphism.
In Java, we can achieve Polymorphism through Method
Overloading and Method Overriding
E N C A P S U L A T I O N
Encapsulation is binding up of Data and Code into a single unit.
A Java class is an example of Encapsulation. Java Bean is fully
encapsulated class.
A B S T R A C T I O N
Abstraction: Hiding details (Implementation ) and showing only
functionality
Example- We just send message but we don't know its internal
sending process
I N H E R I T A N C E
When one object acquires all the property and behavior of its parent object ,
is known as Inheritance. It provides code reusability.
Java doesn't support Multiple Inheritance. But In Java, we can achieve
concept of Multiple Inheritance through Interfaces
T H A N K Y O U
http://www.java2blog.com/

How to Learn Java Programming

  • 1.
    J A VA T U T O R I A L F O R B E G I N N E R S H O W T O L E A R N J A V A P R O G R A M M I N G
  • 2.
    C O NC E P T S 1. Overview 3. OOP's Concept 2. A Simple Main Program
  • 3.
    O V ER V I E W Java is a high-level programming language. Its main feature is a Platform Independency making it different from other languages. Platform Independency means Java compiler generates bytecode instead of machine code. This bytecode can be run on any machine where JVM is available. Java Compiler Java Interpreter Source Code Machine CodeBytecode
  • 4.
    O T HE R F E A T U R E S Object Oriented Multithreaded Simple Robust Secured Architecture Neutral
  • 5.
    S I MP L E J A V A P R O G R A M class Demo { public static void main(String args[]) { System.out.println("Hello World"); } }
  • 6.
    E X EC U T I O N O F P R O G R A M To Compile the above code write the following code To Run the above code write the following code javac Demo.java java Demo
  • 7.
    O B JE C T O R I E N T E D C O N C E P T Object Encapsulation Polymorphism Class Abstraction Inheritance
  • 8.
    O B JE C T & C L A S S Object: Class: It is a real-time entity that has state and behavior. It may be physical and logical. It is a collection of objects. It is a logical entity.
  • 9.
    P O LY M O R P H I S M .One task is performed by different ways is called polymorphism. In Java, we can achieve Polymorphism through Method Overloading and Method Overriding
  • 10.
    E N CA P S U L A T I O N Encapsulation is binding up of Data and Code into a single unit. A Java class is an example of Encapsulation. Java Bean is fully encapsulated class.
  • 11.
    A B ST R A C T I O N Abstraction: Hiding details (Implementation ) and showing only functionality Example- We just send message but we don't know its internal sending process
  • 12.
    I N HE R I T A N C E When one object acquires all the property and behavior of its parent object , is known as Inheritance. It provides code reusability. Java doesn't support Multiple Inheritance. But In Java, we can achieve concept of Multiple Inheritance through Interfaces
  • 13.
    T H AN K Y O U http://www.java2blog.com/