Question: why do yugoslavian names end in ic?
Answer: The Serbian -ic is a suffix that was originally used to create patronymics, so Djokovic is the son of Djorde, Ivanovic the son of Ivan, etc. (Nowadays children usually just get their fathers surname, so the system with patronymics isn't used anymore).