Operators in Java
Learn Operators in Java (Java Basics, Java) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
1. Introduction An operator is a symbol that performs an action on one, two or three operands and produces a value whose type is worked out at compile time . Java has arithmetic, relational, logical, assignment, unary, ternary, bitwise and shift operators, and expressions follow precedence and associativity. Operands are evaluated left to right, binary numeric promotion applies (byte plus short gives int) and compound assignment carries an implicit cast.
More lessons in Java Basics
- Introduction to Java
- Getting Started with Java (Installation & Setup)
- Features of Java
- Difference between JVM, JDK, JRE
- Data Types and Variables
- Access Specifiers
- Control Statements in Java
- Jumping Statements in Java
- Looping Statements
- Packages
- Array in Java
- Array Program
- String in Java
- Constructor in Java
- Constructor Chaining
- Static Keyword
- Input and Output Stream in Java
- Scanner in Java
- Serialization in Java
- Properties File in Java
- Final Keyword
- Wrapper Class
- Methods in Java
- Return Object from Method
- Different way to return to the method in java.
- This and Super Keywords