Hi Maha,
I read your post. I have been reading this Bill Brogden �Exam Cram� book. This book was written in an excellent way to prepare for the exam (atleast in my opinion). As I am seeing your answers in this forum, you take lot of interest in answering questions. I appreciate your effort in educating Java community. Having said that...here are my comments.
In your post you have mentioned about paragraphs 4 and 5. But you have eliminated, paragraph 3, which was given below. When you explain a concept in a book, you do not qualify the words completely in all of their occurences like a legal document. This defeats the purpose of explaining the concept and makes it hard. Similarly, we cannot take any individual sentence from a book and say that it is wring, forgetting the context of the sentence. When you read paragraphs 3,4,5 in order, you do not get the understanding that your are actually using the value returned by the length() method in String object for writing to the outputfile as the string length. At least I did not get that understanding.
�A single character may end up encoded in one, two, or three bytes. Because there is no direct equivalence between the number of characters encoded with UTF-8 in a file and number of bytes, the reading and writing methods use a special format.�
So I will not necessarily, call this as an error in the book.
Regards,
Kondal.