Hi,
neither Java or C#. Java is a dead horse, and C# is like the famous parrot: dead. (*)
Anyway, ns-3 uses C++ and Python. If you're fluent with C# or Java you shouldn't have huge problems in learning the C++ parts.
Cheers,
T.
(*) obviously biased opinion, only placed here to see who's dumb enough to fall in the trap.