Upvote:4
Your Netherlands residence permit allows short visits to other Schengen states, including but not limited to transit.
For a year of studies in Germany, you will need a German D permit. You should apply for it in advance, not just on arrival, even if the Dutch D permit would allow you to enter Germany. The processing might take some time. But questions regarding the German D permit are best asked on Expatriates SE.