Skip to content

Latest commit

 

History

History
106 lines (77 loc) · 4.68 KB

Introduction to Java.md

File metadata and controls

106 lines (77 loc) · 4.68 KB

Introduction to Java

( )

Introduction

  • Java is a programming language and a platform.
  • Java is a high level, robust, object-oriented and secure programming language.
  • Java was developed by Sun Microsystems (which is now the subsidiary of Oracle) in the year 1995.
  • James Gosling is known as the father of Java.

Key Features

  • Object-Oriented
  • Platform Independence
  • Robust and Secure
  • Multithreaded
  • Rich API

Java Platform / Editions

  • Java SE (Java Standard Edition) - Stream, Networking, AWT, Swing, Reflection, Collection
  • Java EE (Java Enterprise Edition) - Servlet, JSP, Web Services
  • Java ME (Java Micro Edition) - Mobile applications
  • JavaFX - Rich internet applications.

Basic Concept of OOPs are

  • Object
    • An entity that has state and behaviour is known as object.
    • Object are the instance of class.
  • Class
    • A Class is a group of objects which have common properties.
    • It is a logical entity.
  • Inheritance
  • Polymorphism
  • Abstraction
  • Encapsulation

Four pillar of OOPs

Inheritance , Polymorphism , Abstraction , Encapsulation

Operators

Operator Type Catrgory Precendance
Unary postfix expr++ expr--
prefix ++expr --expr +expr -expr ~ !
Arithmetic prefix * / % + -
Shift shift << >> >>>
Relational comparison < > <= >= instanceof
equality == !=
Bitwise bitwise AND &
exclusive OR ^
inclusive OR
Logical logical AND &&
logical OR
Ternary ternary ? :
Assignment assignment = += -= *= /= %= &= ^=

public class demo {

    public static void main(String[] args) {

        System.out.println("Saurabh Bahadur");

    }
}


Connect with me:

saurabhbahadur saurabhbahadur singhsaurabhbahadur saurabhbahadur_ mighty saur saurabhbahadur aQR27Bg7de