A Microsoft term used to indicate code which runs under the management of a runtime and not directly on the machine. In the Microsoft world, the runtime system is the Common Language Runtime (CLR) as part of the .NET Framework or .NET Core. The CLR compiles the managed code to machine code and executes it. It also provides a variety of management services such as exception handling, garbage collection, and thread management.

Though the term "managed code" is not used in Java, Java is in essence a managed language since it runs in the Java Virtual Machine (JVM) which is the runtime.

Other examples of managed languages are COBOL, which can be compiled to run either in .NET or in the JVM, and all .NET languages (such as C#).