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 flow statments
• Java provides three types of control flow
statements:
1. Decision Making statements
○ if statements
○ switch statements
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
• 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
12. 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.