Tôi đang sử dụng mã:Tại sao `System.out.println (null);` cho "Phương thức println (char []) không rõ ràng đối với loại lỗi PrintStream"?
System.out.println(null);
Nó được hiển thị lỗi:
The method println(char[]) is ambiguous for the type PrintStream
Tại sao không null
đại diện Object
?
'System.out.println ((đối tượng) null); ' –
Có thể trùng lặp của [không thể vượt qua null để thực thi(); phương pháp của AsyncTask trong android 4.0] (http://stackoverflow.com/questions/10679739/unable-to-pass-null-to-execute-method-of-asynctask-in-android-4-0) – Raedwald
Xem thêm http : //stackoverflow.com/questions/13033037/how-is-an-overloaded-method-chosen-when-a-parameter-is-the-literal-null-value – Raedwald