I am new to Java and I have got a question for those are skilled Java programmers. I am using "Head First Java" book . In this book there is an example where there are two types of double quotes ("") in the print statements. One type of double quotes are with a space between them i. e ; " " and other without space like ; "". Somebody told me that they are the same thing, but I noticed the difference. I couldn't understand the difference between them. Please anyone can help.
I think they have used a word-processor for writing HFJ, because you find code like this: System.out.println(”Campbell‟); You should however always use straight quotes like this "" except inside String or char literals, where you can use the Unicode escapes (\u201d and \u201f).