Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
は何をし(int[]) (int[])ますか?
(int[]) (int[])
private Object[] slots = new Object[8192]; int[] block = (int[]) (int[]) this.slots[0];
この場合、2 番目のキャストは何もしません。タイピングと同じです
private Object[] slots = new Object[8192]; int[] block = (int[]) this.slots[0]; block = (int[]) block;
編集:
明確にするために、私が言及している「2番目の」キャストは左側のものです.