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

What Does The ‘Static’ Keyword Do In A Class?

In this tutorial, we will learn What Does The ‘Static’ Keyword Do In A Class? in java, the Static keyword is generally used for memory management where the keyword is used to share the same variable or method of a given class in java. Static Keyword It is a non-access modifier in java where we … Read more

How To Print A Blank Line Between Sets Of Print Statements? In Python

Here in this tutorial, we will discuss How To Have A Blank Line Between Sets Of Print Statements? In Python To print a blank line we need to use a special character in output to jump on the next line that is ‘/n’ and that needs to be in ‘ ‘ that is inside of … Read more

Implements vs Extends: When To Use In Java?

Here we are going to differentiate between Implements and Extends, and When To Use In Java? Implements are used for interface inheritance and extended if used for class inheritance.  What Are Implements? It is a keyword used for inheriting the properties or member functions along with variables in an interface from another interface and that … Read more

What Is The Difference Between int And Integer In Java?

Here we will learn What Is The Difference Between int And Integer In Java? Where int is a primitive data type and Integer is a wrapper class that gives more flexibility in terms of converting from one form to another. Primitive Data Types They are the pre defined data types java that is already defined … Read more

%d bloggers like this: