How do I compare strings in Java?

In this java tutorial, we will learn how do I compare strings in java. where we have two strings we can compare simply with an inbuilt method .equals() or by simply applying ‘==’ operators where it will compare two strings.   What Is String? The string is an immutable value that can not be edited … Read more

What causes a Array Index Out Of Bounds Exception and how do I prevent it?

In this Tutorial, we will discuss another exception handling What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? As we know that exception handling is a property of Objective orientation programming. And ArrayOutOfBoundsException is an exception where the exception occurs when we try to access the index of the array which actually does not … Read more

%d bloggers like this: