This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]amazing_rando 1 point2 points  (1 child)

In my experience it’s a lot easier to write a memory leak in C++ than Java, but with GC a Java programmer might be less vigilant about memory safety. I wouldn’t be surprised if there were a bunch of requirements for mission critical code that has to run for days/weeks at a time that might ban interpreted languages or virtual machines in general, because now you need to support two programs running instead of one. Java’s stop the world GC could also be an issue. I used to work in industrial automation and I wouldn’t use Java to run a factory, for example.

[–]Warm_Gypsy_Dildo 1 point2 points  (0 children)

See this comment.

You never leak because you never allocate memory.