Ans:
Java supports 44 number of of operator.
2. How to convert one type to another data type and why to use explicit typecast in
java?
Ans:
By typecasting one type able to convert to another type. explicit typecast used
to convert a higher type date to lower type.
Ans:
The java instanceof operator is used to test whether the object is an instance of
the specified type (class or subclass or interface).
Ans:
Parenthesis () operator is operator is considered to be with highest precedence?
Ans:
The assignment operators are right associative.
Ans:
The >> operator carries the sign bit when shifting right. The >>> zero-fills bits
that have been shifted out.
Ans:
Dot operator is used to access methods and variables within objects and classes.
They are used to access instance members of an object and class members of a
class
Ans:
The double value we used can store really big numbers of the floating point
variety. Instead of using double, float can be used. When storing a value in a
float variable, you need the letter "f" at the end.
Like this:
first_number =11.3f;
second_number = 13.4f;
Ans:
Ternary operator is the replacement of conditional control structure. And used to
check the condition.
Ans:
It is referred to as the modulo or remainder operator. It returns the remainder of
dividing the first operand by the second operand.
Ans:
No, it is not a valid operator.
Ans:
Instanceof because this operator will check the object existence.