Read more about the article Wrapper Classes
java_logo

Wrapper Classes

Each primitive type has a wrapper class in Java, which is an object type that corresponds to the primitive Primitive TypeWrapper ClassExamplebyteByteByte byteValue = Byte.valueOf((byte) 1);shortShortShort shortValue = Short.valueOf((short) 1);intIntegerInteger…

Comments Off on Wrapper Classes
Read more about the article Java Arrays
java_logo

Java Arrays

Arrays in Java provide a way to store and manipulate collections of elements. They offer a structured approach to handling data, allowing developers to organize information efficiently. 1. Anatomy of…

Comments Off on Java Arrays
Read more about the article String vs StringBuilder
java_logo

String vs StringBuilder

1. String1.1. Concatenation1.1.1. Concatenation Rules1.2. Immutability1.3. String Methods1. length()2. charAt()3. indexOf()4. substring()5. toLowerCase() and toUpperCase()6. equals() and equalsIgnoreCase()7. startsWith() and endsWith()8. replace()9. contains()10. trim(), strip(), stripLeading(), and stripTrailing()1.4. Method Chaining2.…

Comments Off on String vs StringBuilder