Quarterly Information (Unaudited) (Detail) - USD ($) $ / shares in Units, $ in Millions |
3 Months Ended | 12 Months Ended | |||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Jun. 30, 2019 |
Mar. 31, 2019 |
Dec. 31, 2018 |
Sep. 30, 2018 |
Jun. 30, 2018 |
Mar. 31, 2018 |
Dec. 31, 2017 |
Sep. 30, 2017 |
Jun. 30, 2019 |
Jun. 30, 2018 |
Jun. 30, 2017 |
|||||||||||||||||||
| Quarterly Financial Information Disclosure [Abstract] | |||||||||||||||||||||||||||||
| Revenue | $ 33,717 | $ 30,571 | $ 32,471 | $ 29,084 | $ 30,085 | $ 26,819 | $ 28,918 | $ 24,538 | $ 125,843 | $ 110,360 | $ 96,571 | ||||||||||||||||||
| Gross margin | 23,305 | 20,401 | 20,048 | 19,179 | 20,343 | 17,550 | 17,854 | 16,260 | 82,933 | 72,007 | 62,310 | ||||||||||||||||||
| Operating income | 12,405 | 10,341 | 10,258 | 9,955 | 10,379 | 8,292 | 8,679 | 7,708 | 42,959 | 35,058 | 29,025 | ||||||||||||||||||
| Net income (loss) | $ 13,187 | [1] | $ 8,809 | [1] | $ 8,420 | [1] | $ 8,824 | [1] | $ 8,873 | [2] | $ 7,424 | [2] | $ (6,302) | [2] | $ 6,576 | [2] | $ 39,240 | [1] | $ 16,571 | [2] | $ 25,489 | ||||||||
| Basic earnings (loss) per share | $ 1.72 | $ 1.15 | $ 1.09 | $ 1.15 | $ 1.15 | $ 0.96 | $ (0.82) | $ 0.85 | $ 5.11 | $ 2.15 | $ 3.29 | ||||||||||||||||||
| Diluted earnings (loss) per share | $ 1.71 | [3] | $ 1.14 | [3] | $ 1.08 | [3] | $ 1.14 | [3] | $ 1.14 | [4] | $ 0.95 | [4] | $ (0.82) | [4] | $ 0.84 | [4] | $ 5.06 | [3] | $ 2.13 | [4] | $ 3.25 | ||||||||
| |||||||||||||||||||||||||||||