0
I can use single quote to the string value ? like string var='text';
5 ответов
+ 3
' ' single quotes is used for char & " " is for string type values
+ 1
No no, ' ' only use for character in Java.
+ 1
No you can't...' ' for character like 'a'..." " for String like "Hello".
+ 1
no single quote just for a single character like 'a', 'b', '@', ' ', '2' and string is series of characters like "ab@ 2" and it should be in double quotes (")
+ 1
nope string always in "string" (double quotes)