0

I can use single quote to the string value ? like string var='text';

7th Feb 2016, 12:34 AM
Elghozi Nasreddine
Elghozi Nasreddine - avatar
5 Answers
+ 3
' ' single quotes is used for char & " " is for string type values
2nd May 2016, 9:41 AM
Pulkit Baghel
Pulkit Baghel - avatar
+ 1
No no, ' ' only use for character in Java.
13th Feb 2016, 2:23 PM
Ahmad Azarnia
Ahmad Azarnia - avatar
+ 1
No you can't...' ' for character like 'a'..." " for String like "Hello".
16th Feb 2016, 6:24 AM
Mr. Solo
Mr. Solo - avatar
+ 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 (")
6th Apr 2016, 4:53 AM
R Ashwin Kumar
R Ashwin Kumar - avatar
+ 1
nope string always in "string" (double quotes)
14th Jul 2016, 10:00 AM
Wansh Tiwari
Wansh Tiwari - avatar