Gains (Losses) on Derivative Instruments Recognized in Other Income (Expense), Net (Detail) - Other Income (Expense), Net - USD ($) $ in Millions |
3 Months Ended | 6 Months Ended | ||
|---|---|---|---|---|
Dec. 31, 2024 |
Dec. 31, 2023 |
Dec. 31, 2024 |
Dec. 31, 2023 |
|
| Foreign Exchange Contracts | ||||
| Derivative Instruments, Gain (Loss) [Line Items] | ||||
| Gains (Losses) on Derivatives Not Designated as Hedges | $ 1,138 | $ (334) | $ 755 | $ (128) |
| Equity Contracts | ||||
| Derivative Instruments, Gain (Loss) [Line Items] | ||||
| Gains (Losses) on Derivatives Not Designated as Hedges | (111) | (287) | (459) | (174) |
| Other Contracts | ||||
| Derivative Instruments, Gain (Loss) [Line Items] | ||||
| Gains (Losses) on Derivatives Not Designated as Hedges | (26) | 36 | (2) | 3 |
| Fair Value Hedges | Interest Rate Contracts | ||||
| Derivative Instruments, Gain (Loss) [Line Items] | ||||
| Derivatives | (18) | 22 | 2 | 6 |
| Hedged items | 8 | (34) | (24) | (31) |
| Cash Flow Hedges | Foreign Exchange Contracts | ||||
| Derivative Instruments, Gain (Loss) [Line Items] | ||||
| Amount reclassified from accumulated other comprehensive loss | $ (106) | $ 51 | $ (57) | $ 5 |