v3.19.2
Accounting Policies - Additional Information (Detail) - USD ($)
$ in Millions
12 Months Ended
Jun. 30, 2019
Jun. 30, 2018
Jun. 30, 2017
Jul. 01, 2018
Significant Accounting Policies [Line Items]        
Long-term accounts receivable, net of allowance for doubtful accounts $ 2,200 $ 1,800    
Description of payment terms in contract with customer Payment terms and conditions vary by contract type, although terms generally include a requirement of payment within 30 to 60 days.      
Advertising expense $ 1,600 1,600 $ 1,500  
Retained earnings 24,150 13,682    
Long-term deferred tax liabilities 233 541    
Other current assets $ 10,146 $ 6,751    
Accounting Standards Update 2016-16        
Significant Accounting Policies [Line Items]        
Retained earnings       $ 557
Long-term deferred tax assets       2,800
Long-term deferred tax liabilities       2,100
Other current assets       $ (152)
Lower Limit        
Significant Accounting Policies [Line Items]        
Estimated useful lives of intangible assets 1 year      
Lower Limit | Software        
Significant Accounting Policies [Line Items]        
Estimated useful lives 3 years      
Lower Limit | Computer Equipment        
Significant Accounting Policies [Line Items]        
Estimated useful lives 2 years      
Lower Limit | Buildings and Improvements        
Significant Accounting Policies [Line Items]        
Estimated useful lives 5 years      
Lower Limit | Leasehold Improvements        
Significant Accounting Policies [Line Items]        
Estimated useful lives 3 years      
Lower Limit | Furniture and Fixtures        
Significant Accounting Policies [Line Items]        
Estimated useful lives 1 year      
Upper Limit        
Significant Accounting Policies [Line Items]        
Estimated useful lives of intangible assets 20 years      
Upper Limit | Software        
Significant Accounting Policies [Line Items]        
Estimated useful lives 7 years      
Upper Limit | Computer Equipment        
Significant Accounting Policies [Line Items]        
Estimated useful lives 3 years      
Upper Limit | Buildings and Improvements        
Significant Accounting Policies [Line Items]        
Estimated useful lives 15 years      
Upper Limit | Leasehold Improvements        
Significant Accounting Policies [Line Items]        
Estimated useful lives 20 years      
Upper Limit | Furniture and Fixtures        
Significant Accounting Policies [Line Items]        
Estimated useful lives 10 years