+ 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)

28th Mar 2018, 7:58 PM
Steinchr der Wahre
8 odpowiedzi
+ 7
No it is not. Here we have a string object. char[] arr = { 'h', 'e', 'l', 'l', 'o', '.' }; String arrString = new String(arr );
28th Mar 2018, 8:05 PM
Toni Isotalo
Toni Isotalo - avatar
+ 4
Toni Isotalo But String is NOT a primitive data type. I don't understand, could you please explain? :>
28th Mar 2018, 8:07 PM
Steinchr der Wahre
+ 4
Report that question so that it can be removed
29th Mar 2018, 1:11 PM
Muhd Khairul Amirin
Muhd Khairul Amirin - avatar
29th Mar 2018, 5:07 AM
Paul
Paul - avatar
+ 3
Paul Jacobs so String is not primitive and the answer above is false!?
29th Mar 2018, 7:17 AM
Steinchr der Wahre
+ 1
I think there should have been a "not" in the question.
29th Mar 2018, 3:36 PM
Paul
Paul - avatar
0
Paul Jacobs + Float, Double and Int should be lower case or Float and Double are wrapper classes.
29th Mar 2018, 3:52 PM
Steinchr der Wahre
0
There are 8 primitive types. String is not one of them.
29th Mar 2018, 3:59 PM
Paul
Paul - avatar