|
home—info—lects—labs—exams—hws
tutor/PIs—java.lang docs—java.util docs
There is something happening similar to how
Well,
“Love” is a four-letter word.This is rather boring statement-of-fact about how a word is spelled; however
Love is a four-letter word.is a deeply cynical statement about relationships. The use of quotation marks entirely changes the meaning!
In English and in Java, quotation marks mean: don't consider the meaning of the word; I am talking purely about the (spelling of) the word itself.
For example, in the following, we can't replace ‘crook’ with its synonym ‘thief’, because the quotation marks are talking about the exact wording:
Nixon said “I am not a crook.”However, without quotation marks, you could replace ‘crook’ with a different word whose meaning is the same:
I think Nixon is a crook.
System.out.println( "She said \"hi\" to me!" ); Object120.length("H\"ow\"dy") // evals to 7, not 9. Object120.charAt("H\"ow\"dy", 1) // evals to '"', not '\' |
home—info—lects—labs—exams—hws
tutor/PIs—java.lang docs—java.util docs
©2010, Ian Barland, Radford University Last modified 2010.Sep.13 (Mon) |
Please mail any suggestions (incl. typos, broken links) to ibarlandradford.edu |