State tax filing

Generally, when moving out of California, you will remain a California resident until you establish a permanent residency in another state.  Therefore in your circumstance, since you lived in NJ for 3 months only as a transitory/temporary period, you would still be considered a resident of California until you permanently moved to PA, at which time, you would be a PA resident.