i
Understanding Requirement: Why Java
Why Java is important to the Internet
Java On Linux
First Java Program
Java Virtual Machine Architecture
Class Loading Process by Class Loaders
Role Of Just In Time Compiler
Execution Engine
Data Types
Variables
Arrays
Operators
Arithmetic Operations
Shifting Operators
Logical Operators
Control Statements
Object Oriented Paradigms
The Three OOP principles
Looping Statements
JAVA Class Fundamentals
Command Line Arguments
Static Initialize
Creating an Object
Instance Variable Hiding
Overriding and Overloading of methods
Understanding The Access Controls
Nested And Inner Classes
Dynamic Method Dispatching
Abstract Classes
Using Final To Prevent Overriding & Inheritance
Garbage Collection
Defining a package
Understanding Classpath
Access Protection
Importing packages
Defining and Implementing An Interface
Abstract classes vs Interfaces
Generics
Annotations
Varargs
Foreach
Fundamentals Of Exception Handling
Types Of Exceptions
Learning exception handling, try-catch, multiple catch clauses
Nested Try Statements
Throw, Throws and Finally
Custom Exceptions
Java Thread Model
Creating A Thread
Context Switching
Synchronization: Methods And Statements
Inter-thread Communication
Operators in java are symbols which perform concrete operation. In Java we have couple of different type of operators. Let’s visit the table of operators.
Java unary operator is one which requires only one operand. This kind of operations can be increasing or the value by one, decreasing of the value by one, negating the value. In unary operations there is difference between”++” operator placing. For example, if we have
int a = 5;
And we will write “++” operator, which means increasing value by one, at the end of the variable, it will take place after other calculation. Let’s see on example;
int a = 5;
int b = 7;
int c = a++ + b;
In this case, variable c will be calculated as sum of a and b, but after that calculation a will be increased by one. If after last statement (int c = a++ + b;) we will print a, result will be 6.
But let’s revisit second example:
int x = 11;
int y = 17;
int z = ++x + ++y;
The result will be 12 + 18 and will be 30, as first increasing operation will take place. Same happens with “--"operator.
Don't miss out!