您的位置:首頁技術文章
文章詳情頁

java編程思想第4版中文版的幾處謬誤?

瀏覽:164日期:2024-02-15 10:53:19

問題描述

問題解答

回答1:

書翻譯的不準確,沒了!

這么明顯的問題,明明都知道……

非要別人給你確認一下,你才有自信認為是書的問題而不是自己的問題么?

回答2:

英文原文(169頁)是:

It’s important that all of the methods in Cleanser are public.

至于第一個問題,原文(168頁)是:

First, in the Cleanser append() method, Strings are concatenated to s using the += operator, which is one of the operators (along with ’+’) that the Java designers 'overloaded' to work with Strings.

回答3:

翻譯的不恰當,應該翻譯為“重載”如果了解C++的話,就知道這個相當于String類對“+=”操作符進行了重新實現,“+=”可以用來進行字符串拼接。

標簽: java
相關文章:
国产综合久久一区二区三区