Question: what is the difference between single quotes and double quotes in java?
Answer: 4 Answers. Use single quotes for literal char s, double quotes for literal String s, like so: char c = 'a'; String s = "hello"; They cannot be used any other way around (like in Python, for example).