INCOME TAXES (Tables)
12 Months Ended
Jun. 30, 2019
Income Tax Disclosure [Abstract]  
Components of income before provision for income taxes
The components of income before provision for income taxes were as follows (in thousands):
 Years Ended June 30, 
 2019 2018 2017 
Domestic$115,096 $85,414 $81,957 
Foreign266,393 228,728 203,067 
$381,489 $314,142 $285,024 
Components of provision for income taxes
The provision for income taxes consisted of the following (in thousands):
 Years Ended June 30, 
 2019 2018 2017 
Current
Federal$52,083 $107,167 $25,533 
State2,654 5,560 360 
Foreign3,796 3,098 2,563 
Current tax expense58,533 115,825 28,456 
Deferred
Federal(362)2,059 (858)
State624 (32)(80)
Deferred tax expense262 2,027 (938)
Provision for income taxes$58,795 $117,852 $27,518 
Effective to statutory income tax rate reconciliation
The reconciliation of federal statutory income tax to the Company's provision for income taxes is as follows:
 Years Ended June 30, 
 2019 2018 2017 
Statutory rate21.0 %28.1 %35.0 %
Effect of Foreign Operations(7.7) (19.0) (23.3) 
State Tax Expense0.9  0.5  0.3  
Federal research and development credits(0.2) (0.4) (0.4) 
Stock-based compensation(0.2) (8.4) (2.5) 
Other permanent items1.0  0.1  0.6  
Change in U.S. Federal Statutory Tax Rate—  0.4  —  
Transition tax0.6  36.2  —  
Effective tax rate15.4 %37.5 %9.7 %
Significant components of deferred tax assets and liabilities
Significant components of the Company's deferred tax assets and liabilities as of June 30, 2019 are as follows (in thousands):
 June 30,
 2019 2018 
(In thousands)
Deferred tax assets
Reserves and Allowances$1,217 $819 
Stock-based compensation287 330 
Accrued expenses452 141 
State tax1,305 1,392 
Other915 751 
Total deferred tax assets4,176 3,433 
Deferred tax liabilities
Basis difference for fixed assets(301)(327)
Other Liabilities(965)— 
Total deferred tax liabilities(1,266)(327)
Valuation allowance— — 
Net deferred tax assets$2,910 $3,106 
Reconciliation of beginning and ending balances of unrecognized tax benefits
A reconciliation of the beginning and ending balances of the unrecognized tax benefits during the years ended June 30, 2019, 2018 and 2017 consists of the following (in thousands):
 
 Years Ended June 30, 
 2019 2018 2017 
Unrecognized benefit—beginning of year$29,144 $27,438 $22,851 
Gross increases—current year tax positions3,852 4,762 5,184 
Gross decreases—prior year tax positions due to statute lapse(2,146)(3,056)(597)
Unrecognized benefit—end of year$30,850 $29,144 $27,438