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.
Submitted by heartin on Fri, 08/24/2012 - 23:52
You are allowed to put a label on any statement. Labels are given points in code mainly used along with goto in some other languages. Labels are rarely needed in Java, which lacks a goto statement like some other languages.
In java, labels are mainly used by break and continue statements which normally terminate or continue the innermost block.
Submitted by heartin on Fri, 08/24/2012 - 23:43
There are three types of comments used in Java. These are single line comments, block comments and documentation comment. Also read why block comments might not always reliably comment out a section of code.