Managed code is an application that is executed within a runtime engine installed in the same machine. The application cannot run without it. Java, Visual Basic and .NET are examples of managed code.The runtime environment provides the general library of software routines that the program uses and typically performs memory management. It may also provide just-in-time (JIT) conversion from source code to executable code or from an intermediate language to executable code. In addition, a DBMS may include a runtime engine for its programming language. Contrast with unmanaged code. See runtime engine, CLR and Java.