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.
Submitted by heartin on Sat, 08/25/2012 - 00:55
The line separator is the name given to the character or characters used to separate lines of text, and vary from platform to platform.
Submitted by heartin on Sat, 08/25/2012 - 00:12
It is a compile-time error if a statement cannot be executed because it is unreachable. There are many rules, but we will consider few important ones here.
Pages