Exercise and sell non qualified stock options in different states.

Company granted non qualified stock options in 2011. I excercised it in 2014 and 2015 when I lived in State of New Jersey and worked in State of New York. I moved to State of California in 2016 and sold all stocks. Which state tax (or major tax) I shall pay for this transaction?