[英]In Java, how to compare two object and return Map or Xml, Json of properties which is the difference between two object?
[英]Java - Difference between “return object” and “return (object)”
之間(也許是編譯器級別)有什么特殊區別嗎?
public byte[] getSalt() {
return salt;
}
和
public byte[] getSalt() {
return (salt);
}
否,除非您正在打字。
public byte[] getSalt() {
return (byte[])salt;
}
編寫return x
表示程序員了解了return
含義。 而return(x)
表示程序員錯誤地認為return
是一種函數。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.