Submitted by heartin on Mon, 09/14/2015 - 13:02
The instanceof operator compares an object to a given type and checks if the type of object in left side is assignment-compatible to the type in the right side. i.e., if we can say right-side-type = left-side-type object without any casting.
Submitted by heartin on Sat, 08/25/2012 - 01:39
According to mathematics, remainders are always positive. However, in java, when the remainder operation returns a nonzero result, it has the same sign as its left operand. Though most mathematicians won’t agree, Java Language Specification still refers to % as a remainder operator only.
Submitted by heartin on Sat, 08/25/2012 - 01:28
An expression consists of operands and operators. A logical expression (e.g. a>b) is an expression that evaluate to a true or a false value. Operators with higher precedence are evaluated before operators with relatively lower precedence, when they come together.
Submitted by heartin on Sat, 08/25/2012 - 01:18
Java doesn't allow operator overloading yet + is overloaded for class String. Here we will discuss examples for use of + with Strings and characters.