- "3" is not a char literal. It uses double quotes, instead of single quotes. (Double quotes makes it a String which we'll discuss later).
'' is not a char literal. There isn't a character between the two single quotes. You need one character between the double quotes.
'ab' is not a char literal. There are two characters in between the single quotes. char literals only have one character in between.
Wednesday, 30 January 2008
quote in Java
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment