Monday, November 1, 2010


Dear friends what is the meaning of statements ?  ok  lets see.

The code for  each method in the class appears between braces, and it consist of program statements.
A semicolon (;) terminates each statement. A statement in Java can spread over several lines if necessary,
since the end of each statement is determined by the semicolon, not by the end of line. Here is a java program statement

Bookonloan  =   true;          OR             Bookonloan =true;

You can generally include space and tabs and spread your statements over multiple lines to enhance readability
if it is particularly long statement but sensible constraints apply. You can't put a space in the middle of a name for instance. For example if you type book on loan the compiler will read this as three words..

No comments:

Post a Comment