文章詳情頁
java編程思想第4版中文版的幾處謬誤?
瀏覽:290日期: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
相關文章:
1. golang - 用IDE看docker源碼時的小問題2. 我何時應該在Java中使用JFrame.add(component)和JFrame.getContentPane()。add(component)3. html5和Flash對抗是什么情況?4. 運行python程序時出現“應用程序發生異常”的內存錯誤?5. html - css氣泡,實現“倒三角(不知道算不算三角了)”可透明的。6. 利用IPMI遠程安裝centos報錯!7. 前端 - @media query 使用出現的問題?8. phpstudy8.1沒集成mysql-front9. javascript - 請指條明路,angular的$event,在select中卻是undefined?10. 關docker hub上有些鏡像的tag被標記““This image has vulnerabilities””
排行榜

網公網安備