Monthly Archives

Currying Functions in Java with Examples

Function Currying is a concept of breaking a function with many arguments into many functions with single argument in...

Currying Functions in Java with Examples

Function Currying is a concept of breaking a function with many arguments into many functions with single argument in...

Using _ (underscore) as variable name in Java

The use of the variable name _ in any context is never encouraged. Latest versions of the Java reserve...

Using _ (underscore) as variable name in Java

The use of the variable name _ in any context is never encouraged. Latest versions of the Java reserve...

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...