I think your question was cut off. Comment back here if the following information does not answer your question. If you are only in NJ for educational purposes and you intend to go back to your home state when you have completed your studies, you are a non-resident of NJ for tax purposes.
Residency rules vary from state to state. For example, if you spend more than a certain number of days in some states, you're considered a resident even if you were not living in the state for very long. It's best to check with your State Department of Revenue for specific residency rules, especially as they apply to your particular situation. In the meantime, use the examples below as a general guideline.