Java | Why Can’t I Use Switch Statement On A String?

Here we will find out Why can’t I use a switch statement on a String? in Java Switch can take only Integers, Short, and characters as input because the size it can accommodate is -128 to 127 where all the characters come and in this range, we can see those integers also come but the … Read more

Array | Difference Between int[] array and int array[].

In this tutorial, we will learn the Difference Between int[] array and an int array[]. As far as single dimension array is concerned both are the same we can declare in any of the ways but we can not do so for multidimensional arrays. Whereas int array[] is a way to initialize an array in … Read more

Syntax For Creating A Two-Dimensional Array In Java

Here we will discuss Syntax For Creating A Two-Dimensional Array In Java where we need to provide two square brackets before the array variable name and just after the data type in java where it was somewhat different in the case of C and C++. So let’s see how to initialize a two -dimensional array … Read more

What Is A NullPointerException, And How Do I Fix It? In Java

In this tutorial, We will learn What Is A NullPointerException, And How Do I Fix It? In Java As we know that exceptions occur when there is any condition that may cause some unavoidable error or Situation when the program can not proceed anymore. And handling the such situation are called exception handling. There are … Read more

In Stack What Are The Conditions Of Underflow And Overflow?

Here we will learn about In Stack and What Are The Conditions Of Underflow And Overflow? As Overflow is a condition when we try to add a new element in a stack but there is not enough s[space means the stack is already filled and in a can of underflow when we try to delete … Read more

How to do method overloading for null argument?

In this Tutorial, we will learn How to do method overloading for null arguments? as we can by specifying the variable type which has stored the null value to understand follow the example given below. Although we can not pass the argument as null making a variable, store the null value in it. Method Overloading … Read more

Explain Java Default Constructor

In This Tutorial, we will learn Java Default Constructor where the default constructor is a constructor which has just the name same as the name of the class without any argument and which is called on its own just by creating an object implicitly. Java Constructor constructors are function that has the same name as … Read more

What is null in Java?

In this tutorial, we will learn What is null in Java? there is nothing special type of value that we call null but if we do not specify the value or we can say if we do not enter any value in a variable then by default a value is entered in the variable that … Read more

What is Recursion in Java explain with example?

Here we will Learn What is Recursion in Java and explain it with examples? recursion is calling a function time and again and making it a loop with a given condition and updations and executing a set of code multiple times in a loop to get desired output. Function Calling A function call is a … Read more

In Java How To Find Finding Duplicates In Array?

In this tutorial, we will Learn In Java How To Find Finding Duplicates In an Array? We can do so using comparing each element of the array with each element of the array except the original elements. Using nested for loop with the help of if else conditional operations. Array In Java And Its Elements … Read more

%d bloggers like this: