星期一, 3月 24, 2008

Quiz 3-24-2008

1. Let i, j be two integers. Write a Java program to exchange their values. Please make sure you have good styles of making comments, naming variables, and indenting.

2. The identifier StreamReader is normally abbreviated as SR in programming language C. However, Java programmers normally do not use abbreviations for identifiers. What are the advantages and disadvantages of not using abbreviations?

3. a. What is "self-documenting"?
b. What is the purpose of "Unicode"? Does Java use it?

4. Give an example of "logic error"

沒有留言: