I remember reading in Java's EULA that you acknoledge not to use it for certain things (real time applications). I did a bit of research on this matter and came to the conclusion that it is due to Java's garbage collector that makes Java slower and thus unfit / or not the best choice for real time app development. But now I have another question, C#, it also have garbage collector yet there are people on the internet that claim they write real time applications in this?
My question comes down to this: If I were to choose between Java and C# for real time applications (Exluding C++, which would be my first choise) which one (C# or Java) would give better performance / or can be used for real time applications?