Category Archives

null in Java

Almost all the programming languages are bonded with null. There is hardly a programmer, who is not troubled by...

null in Java

Almost all the programming languages are bonded with null. There is hardly a programmer, who is not troubled by...

Comments in Java

In a program, comments take part in making the program become more human readable by placing the detail of...

Comments in Java

In a program, comments take part in making the program become more human readable by placing the detail of...

Type conversion in Java with Examples

When you assign value of one data type to another, the two types might not be compatible with each...

Type conversion in Java with Examples

When you assign value of one data type to another, the two types might not be compatible with each...

Widening Primitive Conversion in Java

Here is a small code snippet given. Try to Guess the output public class Test { public static void...

Widening Primitive Conversion in Java

Here is a small code snippet given. Try to Guess the output public class Test { public static void...

String in Switch Case in Java

Switch Statement in Java Beginning with JDK 7, we can use a string literal/constant to control a switch statement,...

String in Switch Case in Java

Switch Statement in Java Beginning with JDK 7, we can use a string literal/constant to control a switch statement,...

Switch Statement in Java

The switch statement is a multi-way branch statement. It provides an easy way to dispatch execution to different parts...

Switch Statement in Java

The switch statement is a multi-way branch statement. It provides an easy way to dispatch execution to different parts...

For Loop in Java

The structure of basic for loop: for(initialization; boolean expression; update statement) { //Body } Let’s look at some basic...

For Loop in Java

The structure of basic for loop: for(initialization; boolean expression; update statement) { //Body } Let’s look at some basic...

For-each loop in Java

For-each is another array traversing technique like for loop, while loop, do-while loop introduced in Java5. It starts with...

For-each loop in Java

For-each is another array traversing technique like for loop, while loop, do-while loop introduced in Java5. It starts with...

Loops in Java

Looping in programming languages is a feature which facilitates the execution of a set of instructions/functions repeatedly while some...

Loops in Java

Looping in programming languages is a feature which facilitates the execution of a set of instructions/functions repeatedly while some...