The following table presents the components of other income (expense), net: | | | | | | | | | | | | | | | | | | Three Months Ended July 31, | | Nine Months Ended July 31, | | 2020 | | 2019 | | 2020 | | 2019 | | (in thousands) | Interest income | $ | 780 |
| | $ | 1,789 |
| | $ | 3,137 |
| | $ | 5,280 |
| Interest expense | (941 | ) | | (2,214 | ) | | (4,390 | ) | | (10,608 | ) | Gain (loss) on assets related to deferred compensation plan | 26,153 |
| | 4,686 |
| | 20,166 |
| | 25,201 |
| Foreign currency exchange gain (loss) | 123 |
| | 696 |
| | 5,255 |
| | 2,999 |
| Other, net | 141 |
| | 360 |
| | (1,584 | ) | | 501 |
| Total | $ | 26,256 |
| | $ | 5,317 |
| | $ | 22,584 |
| | $ | 23,373 |
|
|