Components of Other Income (Expense), Net (Detail) - USD ($) $ in Millions |
3 Months Ended | 6 Months Ended | ||
|---|---|---|---|---|
Dec. 31, 2022 |
Dec. 31, 2021 |
Dec. 31, 2022 |
Dec. 31, 2021 |
|
| Other Income And Expenses [Abstract] | ||||
| Interest and dividends income | $ 700 | $ 503 | $ 1,341 | $ 1,023 |
| Interest expense | (490) | (525) | (990) | (1,064) |
| Net recognized gains (losses) on investments | (15) | 300 | (2) | 671 |
| Net gains (losses) on derivatives | (199) | 7 | (190) | 0 |
| Net losses on foreign currency remeasurements | (18) | (13) | (96) | (78) |
| Other, net | (38) | (4) | (69) | 2 |
| Total | $ (60) | $ 268 | $ (6) | $ 554 |
| X | ||||||||||
- Definition Amount before tax of foreign currency transaction realized and unrealized gain (loss) recognized in the income statement. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Aggregate net gain (loss) on all derivative instruments recognized in earnings during the period, before tax effects. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- Definition Amount of realized and unrealized gain (loss) on investment. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- Definition Amount of the cost of borrowed funds accounted for as interest expense. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Amount after accretion (amortization) of discount (premium), and investment expense, of interest income and dividend income on nonoperating securities. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- Definition The aggregate amount of income or expense from ancillary business-related activities (that is to say, excluding major activities considered part of the normal operations of the business). Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- References No definition available.
|
| X | ||||||||||
- Definition Amount of income (expense) related to nonoperating activities, classified as other. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|