SHARE-BASED COMPENSATION - Additional Information On Stock Options (Details) - USD ($) $ / shares in Units, $ in Millions |
12 Months Ended | ||
|---|---|---|---|
Jun. 30, 2025 |
Jun. 30, 2024 |
Jun. 30, 2023 |
|
| Share-Based Payment Arrangement [Abstract] | |||
| Weighted average grant-date fair value of options granted (in dollars per share) | $ 36.23 | $ 34.25 | $ 29.58 |
| Intrinsic value of options exercised | $ 1,546 | $ 1,621 | $ 979 |
| Grant-date fair value of options that vested | 299 | 244 | 219 |
| Cash received from options exercised | 1,693 | 1,888 | 1,189 |
| Actual tax benefit from options exercised | $ 321 | $ 330 | $ 207 |