-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
String listed as Java primitive data type #109
Comments
In Java, there are eight primitive data types: byte: 8-bit signed integer. Range: -128 to 127. |
Java provides eight premitive data types which include -
String in JavaIs a reference type. Strings are an object they are instances of the java.lang.String class. For string manipulation wide range of methods are provided which includes concatenation, comparison, and substring extraction. String objects are immutable, any modification results in the creation of a new String object. Strings being an important DataType have been provided a special initialization technique: however, java also support initialization using new keyword like reference types : |
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 text was updated successfully, but these errors were encountered: