Java Introduction

Java programming language was originally developed by Sun Microsystems which was initiated by James Gosling and released in 1995 as core component of Sun Microsystems’ Java platform (Java 1.0 [J2SE]). Now it has became the one of the most popular computer programming language and is now being used by more than 2 billion devices.

Continue reading


Selection Statement – Decision Making

There are three types of selection statements in Java. First one is if statement which either performs (selects) an action, if a condition is true, or skips it, if the condition is false. Second is ifelse statement which performs an action if a condition is true and performs a different action if the condition is false. Third one is switch statement which performs one of many different actions, depending on the value of an expression.

Continue reading


Java Iteration Statements

Iteration statements create loops in the program. In other words, it repeats the set of statements until the condition for termination is met. Iteration statements in Java are for, while and do-while.

Continue reading


Java Arrays

An array is a group of like-typed variables that are referred to by a common name. Array of any type can be created and may have one or more dimensions. Arrays offer a convenient means of grouping related information.

Continue reading