2007年10月11日 星期四

Quiz 10-12-2007

1. Let i, j be two integers. Write a program to exchange their values. How can you show your program is correct.















2. The identifier BufferedReader is normally abbreviated as BR in programming language C. However, Java programmers normally do not use abbreviations for identifiers. What are the advantages and disadvantages of not using abbreviations?
由於以前記憶体昂貴,為了節省記憶體,所以縮寫;現在記憶體便宜多了,所以比較不需要;沒縮寫可以讓表達的意思比較清楚;至於縮寫是有節省空間的好處

沒有留言: