v3.25.2
Gains (Losses) on Derivative Instruments Recognized in Other Income (Expense), Net (Detail) - Other Income (Expense), Net - USD ($)
$ in Millions
12 Months Ended
Jun. 30, 2025
Jun. 30, 2024
Jun. 30, 2023
Foreign Exchange Contracts      
Derivative Instruments, Gain (Loss) [Line Items]      
Gains (Losses) on Derivatives Not Designated as Hedges $ (938) $ 367 $ (73)
Equity Contracts      
Derivative Instruments, Gain (Loss) [Line Items]      
Gains (Losses) on Derivatives Not Designated as Hedges (266) (177) (420)
Other Contracts      
Derivative Instruments, Gain (Loss) [Line Items]      
Gains (Losses) on Derivatives Not Designated as Hedges 21 (15) (41)
Fair Value Hedges | Interest Rate Contracts      
Derivative Instruments, Gain (Loss) [Line Items]      
Derivatives 5 (23) (65)
Hedged items (45) (25) 38
Cash Flow Hedges | Foreign Exchange Contracts      
Derivative Instruments, Gain (Loss) [Line Items]      
Amount reclassified from accumulated other comprehensive loss $ 103 $ (48) $ 61