| SEGMENT REPORTING AND GEOGRAPHIC INFORMATION (Tables)
 | 3 Months Ended | 
| Sep. 30, 2021 | 
|---|
| Segment Reporting [Abstract] |  | 
| Summary of Results for Reportable Segments | The following is a summary of results for each of our four reportable segments for the indicated periods: 
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  
|  | Three Months Ended September 30, |  |  |  
| (In thousands) | 2021 |  | 2020 |  |  |  |  |  
| SPC: |  |  |  |  |  |  |  |  
| Revenues | $ | 1,779,083 |  |  | $ | 1,267,954 |  |  |  |  |  |  
| Segment gross margin | 1,161,929 |  |  | 814,810 |  |  |  |  |  |  
| Specialty Semiconductor Process: |  |  |  |  |  |  |  |  
| Revenues | 102,029 |  |  | 88,954 |  |  |  |  |  |  
| Segment gross margin | 54,721 |  |  | 49,928 |  |  |  |  |  |  
| PCB, Display and Component Inspection: |  |  |  |  |  |  |  |  
| Revenues | 202,808 |  |  | 181,177 |  |  |  |  |  |  
| Segment gross margin | 94,476 |  |  | 90,169 |  |  |  |  |  |  
| Other: |  |  |  |  |  |  |  |  
| Revenues | — |  |  | 140 |  |  |  |  |  |  
| Segment gross margin | — |  |  | 13 |  |  |  |  |  |  
| Totals: |  |  |  |  |  |  |  |  
| Revenues for reportable segments | $ | 2,083,920 |  |  | $ | 1,538,225 |  |  |  |  |  |  
| Segment gross margin | $ | 1,311,126 |  |  | $ | 954,920 |  |  |  |  |  |  | 
| Schedule of Reconciliation of Total Reportable Segments Revenue to Total Revenue | The following table reconciles total revenues for reportable segments to total revenues for the indicated periods: 
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  
|  | Three Months Ended September 30, |  |  |  
| (In thousands) | 2021 |  | 2020 |  |  |  |  |  
| Total revenues for reportable segments | $ | 2,083,920 |  |  | $ | 1,538,225 |  |  |  |  |  |  
| Corporate allocations and effects of foreign exchange rates | (82) |  |  | 395 |  |  |  |  |  |  
| Total revenues | $ | 2,083,838 |  |  | $ | 1,538,620 |  |  |  |  |  |  | 
| Schedule of Reconciliation of Total Segment Gross Margin to Total Income Before Income Taxes | The following table reconciles total segment gross margin to total income before income taxes for the indicated periods: 
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  
|  | Three Months Ended September 30, |  |  |  
| (In thousands) | 2021 |  | 2020 |  |  |  |  |  
| Total segment gross margin | $ | 1,311,126 |  |  | $ | 954,920 |  |  |  |  |  |  
| 
Acquisition-related charges, corporate allocations, and effects of foreign exchange rates(1)
 | 40,912 |  |  | 36,862 |  |  |  |  |  |  
| Research and development | 258,153 |  |  | 219,038 |  |  |  |  |  |  
| Selling, general and administrative | 193,261 |  |  | 172,631 |  |  |  |  |  |  
|  |  |  |  |  |  |  |  |  
| Interest expense | 38,312 |  |  | 39,386 |  |  |  |  |  |  
|  |  |  |  |  |  |  |  |  
| Other expense (income), net | 14,140 |  |  | 3,197 |  |  |  |  |  |  
| Income before income taxes | $ | 766,348 |  |  | $ | 483,806 |  |  |  |  |  | __________________(1)Acquisition-related charges primarily include amortization of intangible assets and amortization of inventory fair value adjustments presented as part of costs of revenues. | 
| Schedule of Revenues by Geographic Region | The following is a summary of revenues by geographic region, based on ship-to location, for the indicated periods: 
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  
| (Dollar amounts in thousands) | Three Months Ended September 30, |  |  |  
| 2021 |  | 2020 |  |  |  |  |  
| Revenues: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  
| China | $ | 685,156 |  |  | 33 | % |  | $ | 486,089 |  |  | 32 | % |  |  |  |  |  |  |  |  |  
| Taiwan | 627,084 |  |  | 30 | % |  | 369,100 |  |  | 24 | % |  |  |  |  |  |  |  |  |  
| Korea | 239,183 |  |  | 12 | % |  | 189,518 |  |  | 12 | % |  |  |  |  |  |  |  |  |  
| North America | 177,740 |  |  | 9 | % |  | 170,176 |  |  | 11 | % |  |  |  |  |  |  |  |  |  
| Japan | 175,167 |  |  | 8 | % |  | 164,419 |  |  | 11 | % |  |  |  |  |  |  |  |  |  
| Rest of Asia | 92,068 |  |  | 4 | % |  | 76,201 |  |  | 5 | % |  |  |  |  |  |  |  |  |  
| Europe and Israel | 87,440 |  |  | 4 | % |  | 83,117 |  |  | 5 | % |  |  |  |  |  |  |  |  |  
| Total | $ | 2,083,838 |  |  | 100 | % |  | $ | 1,538,620 |  |  | 100 | % |  |  |  |  |  |  |  |  |  | 
| Schedule of Revenues by Major Products | The following is a summary of revenues by major product categories for the indicated periods: 
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  
| (Dollar amounts in thousands) | Three Months Ended September 30, |  |  |  
| 2021 |  | 2020 |  |  |  |  |  
| Revenues: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  
| Wafer Inspection | $ | 887,512 |  |  | 43 | % |  | $ | 519,551 |  |  | 34 | % |  |  |  |  |  |  |  |  |  
| Patterning | 439,591 |  |  | 21 | % |  | 370,932 |  |  | 24 | % |  |  |  |  |  |  |  |  |  
| Specialty Semiconductor Process | 93,120 |  |  | 4 | % |  | 74,027 |  |  | 5 | % |  |  |  |  |  |  |  |  |  
| PCB, Display and Component Inspection | 137,887 |  |  | 7 | % |  | 120,626 |  |  | 8 | % |  |  |  |  |  |  |  |  |  
| Services | 453,950 |  |  | 22 | % |  | 393,125 |  |  | 26 | % |  |  |  |  |  |  |  |  |  
| Other | 71,778 |  |  | 3 | % |  | 60,359 |  |  | 3 | % |  |  |  |  |  |  |  |  |  
| Total | $ | 2,083,838 |  |  | 100 | % |  | $ | 1,538,620 |  |  | 100 | % |  |  |  |  |  |  |  |  |  | 
| Schedule of Long-Lived Assets by Geographic Region | 
Land, property and equipment, net by geographic region as of the dates indicated below were as follows: 
 
|  |  |  |  |  |  |  |  |  |  |  |  |  
|  | As of |  | As of |  
| (In thousands) | September 30, 2021 |  | June 30, 2021 |  
| Land, property and equipment, net: |  |  |  |  
| United States | $ | 476,809 |  |  | $ | 447,359 |  |  
| Singapore | 81,160 |  |  | 76,882 |  |  
| Israel | 60,064 |  |  | 57,403 |  |  
| Europe | 56,153 |  |  | 56,895 |  |  
| Rest of Asia | 24,361 |  |  | 24,488 |  |  
| Total | $ | 698,547 |  |  | $ | 663,027 |  |  |