+ 1
Is string containing a single character same as a char?
2 Réponses
+ 2
no..... char is primitive. String is an object.
but if you print a char containing 'f'. and print a string containing the same , the output is the same ( things are different under the hood!)
0
They are different