Continue statement is mostly used inside loops. Whenever it is encountered inside a loop, control directly jumps to the beginning of the loop for next iteration, skipping the execution of statements inside loop’sRead More…
What is HTML?
What is HTML? HTML is the standard markup language for creating Web pages. HTML stands for Hyper Text Markup Language HTML describes the structure of Web pages using markup HTML elements areRead More…
do-while loop
In this tutorial we will discuss do-while loop in java. do-while loop is similar to while loop, however there is a difference between them: In while loop, condition is evaluated before theRead More…
Switch Case statement
Switch case statement is used when we have number of options (or choices) and we may need to perform a different task for each choice. The syntax of Switch case statement looks likeRead More…
For loop
Loops are used to execute a set of statements repeatedly until a particular condition is satisfied. In Java we have three types of basic loops: for, while and do-while. In this tutorialRead More…
While loop
In the last tutorial, we discussed for loop. In this tutorial we will discuss while loop. As discussed in previous tutorial, loops are used to execute a set of statements repeatedly untilRead More…
Variables
A variable is a name which is associated with a value that can be changed. For example when I write int i=10; here variable name is i which is associated with valueRead More…
If..else Statement
When we need to execute a set of statements based on a condition then we need to use control flow statements. For example, if a number is greater than zero then we wantRead More…
What is Encapsulation?
Encapsulation is one of the main concepts in Object Oriented Programming(OOP). It is also called information hiding . An object has to provide its users only with the essential information for manipulation,Read More…
Naming Convention Best Practices
Coding conventions serve the following purposes: They create a consistent look to the code, so that readers can focus on content, not layout. They enable readers to understand the code more quicklyRead More…