State tax filing

Thanks.

If I file part year in both states (which makes sense), does this also mean that I have to pay taxes in both Ca and NJ for the period of April through December (that would be double taxed) ? or I pay in Ca from Jan through March, and NJ from April - Dec.