Is String a primitive data type in Java? Ans. No. String is not a primitive data type in Java, even though it is one of the most extensively used object. Strings in Java are instances of String class defined in java.lang package.
Download the Study24x7 App, so you can connect and collaborate.