At many universities it's the language they teach and have most of their exercises in. The exercises that are explicitly about something else excluded. Functional programming -> Haskell, logic oriented programming -> Prolog, statistics -> R, writing compilers -> C with flex/yacc/bison etc. Everything else: Java. At least it was like that for me when I studied in the '00s and '10s in Vienna.