+ 3
Is this a Bug in challenges?
https://imgur.com/a/pJh1n But String is NOT a primitive datatype. It is an Class. You can create Objects of type String. EDIT: Float and Double are wrapper classes. I chose Int. It is not the wrapper class (Integer). Primitive data type would be "int" (lowerCase)
8 Réponses
+ 7
No it is not. Here we have a string object.
char[] arr = { 'h', 'e', 'l', 'l', 'o', '.' };
String arrString = new String(arr );
+ 4
Toni Isotalo
But String is NOT a primitive data type. I don't understand, could you please explain? :>
+ 4
Report that question so that it can be removed
+ 3
The answer is here: https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html
+ 3
Paul Jacobs
so String is not primitive and the answer above is false!?
+ 1
I think there should have been a "not" in the question.
0
Paul Jacobs
+ Float, Double and Int should be lower case or Float and Double are wrapper classes.
0
There are 8 primitive types. String is not one of them.