Not true. Knowing the APIs you most commonly use instead of having to keep flicking back to the reference makes you much more efficient.
Your professor DID memorize them, he was just smart about how he did it. Instead of memorizing upfront, he did it in bitesize pieces, and was productive along the way. That's what a good programmer does too.