Continue Statement in JAVA Suppose you are working with loops. Sometime it is desirable terminate the loop or skip some statement inside the loop without checking the test expression. In such case “continue” and “break” statement are used. “Continue” statement is mostly used inside the loops (for, while, do-while). It… Continue Reading Continue Statement in JAVA

Break Statement in JAVA The break statement is usually used in following two scenarios: The break statement terminates the loop immediately, and the control of the program moves to the next statement following the loop. The important point to note here is that when a break statement is used inside… Continue Reading Break Statement in JAVA

Switch Case Statement The switch statement is a multi-way branch statement. It provides an easy way to dispatch execution to different parts of code based on the value of the expression. Switch case statement is used when we have number of options (or choices) and we may need to perform… Continue Reading Switch Case Statement

Java Operators An operator is used to perform an operation over one or more operands. It is a character that represents an action, for example * is an arithmatic operator that represents multiplication. Operator in Java are classified as:- Assignment Operator Arithmetic Operator Auto-increment and Auto-decrement Operator Logical Operator Relation… Continue Reading Java Operators

Variables in Java A variable is something which is associated with a value can be changed. For example: int i=10; Here variable name “i” which is associated with with value 10, int is a data type that represents that this variable can hold integer values. Note: We will cover the… Continue Reading Variables in Java

First Java Program NOTE: You need to have java installed on your system. Step 1: Open a text editor, like Notepad on windows and TextEdit on Mac. Write a Java Program as similar as mentioned below, in the text editor. public class FirstJavaProgram{ public static void main(String[] args){ System.out.println(“This is… Continue Reading First Java Program

Setting Class Path for Java In this tutorial we are study how we can set the java JDK class path. Java is an open source software, it is is freely available on http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html. Download the latest version of JDK on your machine. Install JDK on your machine, if you are installing… Continue Reading Setting Class Path for Java

Get more stuff like this
in your inbox

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.