( )
- Java is a programming language and a platform.
- Java is a
high level
,robust
,object-oriented
andsecure
programming language. - Java was developed by
Sun Microsystems
(which is now the subsidiary ofOracle
) in the year1995
. James Gosling
is known as the father of Java.
- Object-Oriented
- Platform Independence
- Robust and Secure
- Multithreaded
- Rich API
- 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.
- 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
Inheritance
, Polymorphism
, Abstraction
, Encapsulation
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");
}
}