Category Java

Scientech Easy welcomes you in the Java tutorial category. We have designed this tutorial series for beginners, students, and professional developers who want to learn Java programming from basic to advanced levels. Here, you will find easy-to-understand Java tutorials, practical example programs, interview questions, and quizzes.

So, let’s start to understand Java concepts one by one with these tutorials.

Substring in Java (with Example)

Memory concept for allotting substring object.

Substring in Java is a subset of the main string specified by start and end indices. We can extract substrings by using substring() method. Consider the following example. String str = “Hello, World”; String sub = str.substring(0, 5); // sub…

String Concatenation in Java

String concatenation in Java

String concatenation in Java is the process of joining or combining two or more strings together to create a new string. It is one of the most common operation or task in any programming languages. For example, when you fill…

Immutable String in Java

Why string is immutable in Java

String class in Java is immutable. The meaning of immutable is unchangeable or unmodifiable. That is, once we create a string object with value, we are not allowed to perform any changes in that object. In other words, we cannot…

String in Java | String Literal, String Pool

Creating object to string class in Java is by using new operator

A string is a very important topic in the world of Java or any other programming languages. In almost all programming languages such as C, C++, Java, Python, or any application, whether Java-based or Python-based, the most commonly used object…

String Compare in Java | String Comparison

String compare by = = operator in Java

In this tutorial, we will learn how to compare two strings in Java with the help of examples. We will explore various methods to compare between the two strings. In Java, or any other programming languages, string comparison is the…