If you’ve read many of my previous posts you’ll probably be aware that my preferred programming language is C++, and that the core Prelert code is written in it. However, large parts of the Prelert codebase are also written in Java, including the component of the Anomaly Detective® Engine API that you’ll communicate with RESTfully from your own code.
One of the benefits of Java over C++ is that memory management is handled by the JVM, liberating the developer from having to worry about it. At least, that’s the theory. In practice, when you write a non-trivial Java program you do have to consider what’s going on with the memory, but in a different way to writing C++. The JVM uses a garbage collector to find objects that are no longer required and release the memory they occupy.