According to wikipedia, a (primitive) wrapper class in Java is one of those eight classes that wrap a (=one) primitive value. String wraps a char[] so according to this it is not a (primitive) wrapper class.

Furthermore, String is not designed to wrap or decorate a character array. String has been designed to model a string, a character sequence and the current implementation uses an internal char[]. But Sun could also have chosen to use a byte[] a long with a character encoding hint, a collection or something native. That doesn't matter.

That's different for the primitive wrappers: they have been designed only to wrap a primitive, to adapt a java primitive to java.lang.Object.

Answer from Andreas Dolk on Stack Overflow
🌐
Medium
medium.com › @gauravshah97 › wrapper-classes-in-java-0c5d9205f3b3
Wrapper Classes in Java
April 26, 2024 - To get a primitive data type value corresponding to a string value, you can use the static utility method parseDataType. Each wrapper class (except Character) defines a method to parse a String to the corresponding primitive value.
🌐
W3Schools
w3schools.com › java › java_wrapper_classes.asp
Java Wrapper Classes
Java Examples Java Videos Java ... Java Study Plan Java Interview Q&A ... Wrapper classes provide a way to use primitive data types (int, boolean, etc..) as objects....
🌐
GeeksforGeeks
geeksforgeeks.org › java › wrapper-classes-java
Wrapper Classes in Java - GeeksforGeeks
Wrapper objects allow primitives ... null values, while primitives do not. Wrapper classes provide utility methods such as compareTo(), equals(), and toString()....
Published   April 6, 2026
🌐
W3Resource
w3resource.com › java-tutorial › java-wrapper-classes.php
Java Wrapper Classes - w3resource
August 19, 2022 - The wrapper classes in java servers two primary purposes. To provide a mechanism to ‘wrap’ primitive values in an object so that primitives can do activities reserved for the objects like being added to ArrayList, Hashset, HashMap etc. collection. To provide an assortment of utility functions for primitives like converting primitive types to and from string objects, converting to various bases like binary, octal or hexadecimal, or comparing various objects.
🌐
Coderanch
coderanch.com › t › 370280 › java › string-wrapper-class
is string a wrapper class? (Java in General forum at Coderanch)
In Java, a Wrapper class encapsulates ... object of primitive types. ----------- Nayan. ... Hi nayan, Well i went thru the java docs..... String class is not a wrapper class....
🌐
DEV Community
dev.to › neelakandan_ravi › stringwrapper-classstringbufferstring-split-2o68
String,Wrapper Class,Stringbuffer,String split() - DEV Community
March 7, 2025 - This is especially true if you ... object and discards the old one.** ... Wrapper classes provide a way to use primitive data types (int, boolean, etc..) as objects....
Find elsewhere
🌐
Programiz
programiz.com › java-programming › wrapper
Java Wrapper Class (With Examples)
The wrapper classes in Java are used to convert primitive types (int, char, float, etc) into corresponding objects. Each of the 8 primitive types has corresponding wrapper classes. We can also use the valueOf() method to convert primitive types into corresponding objects. class Main { public ...
🌐
sghoshbooks
techguruspeaks.com › wrapper-classes-in-java
Wrapper classes in Java - TechGuruSpeaks
April 24, 2020 - The NaN value, positive infinity and negative infinity will result in the strings “NaN”, “Infinity”, and “-Infinity”, respectively. In addition, the wrapper classes Integer and Long define overloaded toString() methods for converting integers to string representation in decimal, binary, octal, and hexadecimal notation.
🌐
Geek Interview
geekinterview.com › question_details › 14356
Wrapper class. Is String a Wrapper Class
Wrapper Classes correspond to the primitive data types in Java, as String is not a datatype in java, hence it is not a wrapper class.
🌐
Geekster
geekster.in › home › wrapper classes in java
https://www.geekster.in/articles/java-wrapper-classes/
June 27, 2024 - Initial Value: CustomIntWrapper{value=10} After increment: CustomIntWrapper{value=11} After adding 5: CustomIntWrapper{value=16} After subtracting 3: CustomIntWrapper{value=13} Java ... Initially, the CustomIntWrapper object is created with a value of 10. After each operation (increment, add, subtract), the value of the CustomIntWrapper object is updated accordingly, and the object’s string representation is printed. Object-oriented compatibility: Wrapper classes allow primitive data types to be treated as objects, facilitating their use in object-oriented paradigms like inheritance and polymorphism.
🌐
Medium
medium.com › @ayushgrwl365 › wrapper-classes-in-java-06fb3eab4d71
Understanding Wrapper Classes in Java | Medium
October 16, 2024 - For instance, Java’s ArrayList can store objects but not primitive types. By using wrapper classes, we can store primitive values in collections like ArrayList or HashMap. ArrayList<Integer> numbers = new ArrayList<>(); numbers.add(5); // Here, the int 5 is "wrapped" into an Integer object. 2. Utility Methods: Wrapper classes provide several useful methods. For example, the Integer class has methods like parseInt() to convert a String into an int.
🌐
Javapedia
javapedia.net › Using-String › 750
Is string a wrapper class in Java?
No, String is a class, but not a wrapper class. Wrapper classes like Integer exists for each primitive type and they can be used to convert a primitive data value into an object or vice-versa.
🌐
Baeldung
baeldung.com › home › java › core java › wrapper classes in java
Wrapper Classes in Java | Baeldung
March 17, 2024 - Well, we can either use constructor or static factory methods to convert a primitive value to an object of a wrapper class. As of Java 9, however, constructors for many boxed primitives such as Integer or Long have been deprecated.
🌐
The Knowledge Academy
theknowledgeacademy.com › blog › wrapper-class-in-java
Wrapper Class in Java and How to Create a Custom Wrapper Class
December 11, 2025 - The Wrapper Class in Java allows ... unboxing, offering utility methods for data manipulation and conversion. No, String is not a Wrapper Class in Java....
🌐
Great Learning
mygreatlearning.com › blog › it/software development › java wrapper classes with examples
Java Wrapper Classes with Examples
June 18, 2025 - Utility Methods: Wrapper classes provide many useful static utility methods. These methods help convert values, parse strings, and perform other operations on primitive data. For example, Integer.parseInt("123") converts a string to an integer. Java provides automatic conversion between primitive types and their wrapper class objects.
🌐
Medium
medium.com › @gaddamnaveen192 › everything-you-need-to-know-about-wrapper-classes-in-java-9b30cca51e6c
Everything You Need to Know About Wrapper Classes in Java | by Gaddam.Naveen | Medium
June 13, 2025 - For example, the primitive type int has a wrapper class called Integer. Similarly, char has Character, boolean has Boolean, and so on ... Collections like ArrayList don’t support primitives. You can’t store int directly in an ArrayList — you need Integer. They provide utility methods. For example, Integer.parseInt("123") converts a String into an int. Java features like autoboxing and unboxing work with wrappers
🌐
GeeksforGeeks
geeksforgeeks.org › java › utility-methods-of-wrapper-classes-in-java
Utility Methods of Wrapper Classes in Java - GeeksforGeeks
February 9, 2022 - A. Wrapper valueOf(String s): Every wrapper class except Character class contains a static valueOf() method to create Wrapper class object for a given String. ... // Java program to illustrate valueof() Method class GFG { public static void ...
🌐
Hero Vired
herovired.com › learning-hub › blogs › wrapper-class-in-java
Wrapper Classes in Java: Types, Uses, Examples & Advantages
January 21, 2025 - It provides methods for converting between booleans and substring in Java and methods for type casting between boolean primitives and their corresponding wrapper classes. To Reverse a String in Java, you have to use the Wrapper class that can convert a string to its corresponding primitive data type and can wrap that primitive data type.