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.

Conditional Operator in Java (Ternary Operator)

Conditional operator in Java

The conditional operator in Java provides a one-line approach for creating a simple conditional statement. It is commonly used as a shorthand method for the if-else statement. It makes the code much simpler, shorter, and more readable. The conditional operator…

String Constructor in Java with Example

In this tutorial, we will understand the most commonly used string constructor in Java with the help of example programs. In Java, string class supports several types of constructors to create and initialize string objects based on the various types…

StringBuffer Class in Java

Difference between length and capacity in Java StringBuffer class

StringBuffer in Java is a peer class of String that provides much of the functionality of strings. It provides more flexibility than String. As we know that a string is fixed-length, immutable, and cannot be modified. That is, once we…

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…