He studied law and political science at the universities of Goethe University Frankfurt , University of Burgundy , Ludwig Maximilian University of Munich , University of Königsberg , and University of Hamburg from 1933 to 1936 , gaining a doctorate in 1938 and taking the Second Staatsexamen degree in 1939 .