Why there is primitive type for integer(int) even though we have an object for integer as Integer?
But the same is not with String type. There is no such primitive type for
This is because processors (CPUs) have direct support for integer types but not for strings. And for performace reasons Java supports some native types that are likely to be supported by the processors the JVM might run on.