+ 1

Is string containing a single character same as a char?

2nd Mar 2018, 1:28 PM
Manroop Singh
Manroop Singh - avatar
2 Answers
+ 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!)
2nd Mar 2018, 1:34 PM
Farshaad Heydari
Farshaad Heydari - avatar
0
They are different
2nd Mar 2018, 1:32 PM
sudarshan
sudarshan - avatar
Hot today
.
1 Votes
What?
0 Votes
HTML
0 Votes
Web
0 Votes
Quiz duel
0 Votes
FRC Coding?
1 Votes
AI
2 Votes
help
0 Votes
APIs
1 Votes