This post shows how to concatenate String using trivial methods like the plus operator and the concat method. Here, we'll look at some problems associated with those two ways and how to avoid them using the StringBuilder and StringBuffer classes.
Learn how to create a thread in Java using the Runnable and Thread classes.
This article explains the toString method, its purpose, and how to use it effectively in Java classes.
In this article, you'll learn what a nested class is, its benefits and drawbacks, and how they can appear in Java applications.
In this article, we'll look at the String Pool and how it works in the Java programming language. Code examples illustrate the string immutability and string pool.
This article shows what are ArrayIndexOutOfBoundsException and IndexOutOfBoundsException and how to avoid both of them using the enhanced for loop and Iterator.