Community
Learning Project
JAVA
PROGRAMMING
Introduction to Java
• Java is programming language which was
developed by Sun Microsystems in the
year 1995.
• James Gosling is known as the Father of Java.
• Java was first known as Oak.
History of Java
• Java was originally designed for interactive television,
but it was too advanced technology for the digital
cable television industry at the time.
• Java team members (also known as
Green Team) initiated this project to develop
a language for digital devices.
Features of Java
• Simple
• Object-oriented
• Robust
• Portable
• Secure
so on….
Java Data Types
• There are two types of data types in java:
◇ Primitive data types
includes- char, short, int, byte, etc
◇Non Primitive data types
includes- classes, interfaces, arrays
Java control flow statments
• Java provides three types of control flow
statements:
1. Decision Making statements
○ if statements
○ switch statements
2. Loop statements
○ do while loop
○ while loop
○ for loop
○ for-each loop
3. Jump statements
○ break statement
○ continue statement
Inheritance in Java
• On the basis of class, there are three
types of inheritance in java:
□ Single Inheritance
□ Multilevel Inheritance
□ Hierarchical Inheritance
Java ArrayList
• Java ArrayList class uses a dynamic array
for storing the elements.
• It is found in java.util package.
• ArrayList maintains the insertion order
internally.
• It inherits the AbstractList class and
implements List interface
Java LinkedList
• Java LinkedList class uses doubly linked
list to store the elements.
• It provides a linked-list data structure.
• It inherits the AbstractList class and
implements List and Deque interfaces.
Java Programming

Java Programming

  • 1.
  • 2.
  • 3.
    Introduction to Java •Java is programming language which was developed by Sun Microsystems in the year 1995. • James Gosling is known as the Father of Java. • Java was first known as Oak.
  • 4.
    History of Java •Java was originally designed for interactive television, but it was too advanced technology for the digital cable television industry at the time. • Java team members (also known as Green Team) initiated this project to develop a language for digital devices.
  • 5.
    Features of Java •Simple • Object-oriented • Robust • Portable • Secure so on….
  • 6.
    Java Data Types •There are two types of data types in java: ◇ Primitive data types includes- char, short, int, byte, etc ◇Non Primitive data types includes- classes, interfaces, arrays
  • 7.
    Java control flowstatments • Java provides three types of control flow statements: 1. Decision Making statements ○ if statements ○ switch statements
  • 8.
    2. Loop statements ○do while loop ○ while loop ○ for loop ○ for-each loop
  • 9.
    3. Jump statements ○break statement ○ continue statement
  • 10.
    Inheritance in Java •On the basis of class, there are three types of inheritance in java: □ Single Inheritance □ Multilevel Inheritance □ Hierarchical Inheritance
  • 11.
    Java ArrayList • JavaArrayList class uses a dynamic array for storing the elements. • It is found in java.util package. • ArrayList maintains the insertion order internally. • It inherits the AbstractList class and implements List interface
  • 12.
    Java LinkedList • JavaLinkedList class uses doubly linked list to store the elements. • It provides a linked-list data structure. • It inherits the AbstractList class and implements List and Deque interfaces.