Statement
JAVA – Control Statements

As you’ve learned in the sequential statements topic, the computer while running a java program, starts executing from the topmost line of the code. It reads the first line of the code, and continues doing so till the last line. Control statements help you run a program in a manner you define. These statements are [...]

Read More
Posted on 26th August 2010No Comments
JAVA Expressions

Let’s first look at expressions. An expression is a program construct defined according to the syntax of the programming language, which uses variables, operators, and methods. Let’s now look at some examples of expressions: int category_var = 0; cat_Array[0]=200; Now you can use these variables in the following expression: System.out.println(“An element 1 at index 0: [...]

Read More
Posted on 15th April 2010No Comments
Sequential Statements in JAVA

A program is defined as a group of statements executed in a given order to achieve a predetermined result.  Therefore, a program executes the statements in a sequential manner, either from top to bottom or vice versa. These are executed in the manner that they appear in the program code, called the sequential execution or [...]

Read More
Posted on 12th April 2010No Comments
JAVA – Different type of Statements

A statement is a command given by the programmer to the computer program. Statements are used by different computer programming languages, such as Java, C, and C++. The syntax for declaring and using statements varies in each language. A simple example of a statement can be: println “Hello ! I hope you are enjoying your [...]

Read More
Posted on 6th April 2010No Comments