String listed as Java primitive data type
Author: swapnilmadaviCreated Dec 14, 2021Updated May 23, 2024
For the question
Can you list 8 primitive types in java?
in Objects and Primitives section, String is listed as an extra Primitive data type.
According to the Java documentation (here),
The String class is not technically a primitive data type
Source: amitshekhariitbhu/android-interview-questions