JAVA

Primitive vs Wrapper Class in Java

Overview In this Blog we will find answer for following questions What is Primitive Type. What is Wrapper Class. Convert one into another. Ideal scenario to use Primitive vs Wrapper. Primitive Type Primitive types directly contain values. Java defines many primitive type variables. We will see mainly int vs Integer. Read more…

By Ashish, ago
JAVA

String is immutable

Overview We will find answers for following questions What is String pool. How does memory allocation works for String. Why are String immutable. String pool String pool is a special storage area in Java heap. When a string is created and if the string already exists in the pool, the Read more…

By Ashish, ago