At the end of his first year of studies , Kafka met Max Brod , a fellow law student who became a close friend for life .
It was while he was studying law at the University of Prague that he met Max Brod who was to become his friend .