Showing posts with label Interview Questions. Show all posts
Showing posts with label Interview Questions. Show all posts

Difference Between Compiler and Interpreter

What is the difference between Compiler and Interpreter?

Compiler: -

A compiler is a program that translates program (called source code) written in some high level language into object code.A compiler translates high-level instructions directly into machine language and this process is called compiling.

Interpreter: -

An interpreter translates high-level instructions into an intermediate form, which it then executes. Interpreter analyzes and executes each line of source code in succession, without looking at the entire program; the advantage of interpreters is that they can execute a program immediately.
Read More

Difference Between Managed Code an UnManaged Code in

What is the difference between Managed code and unmanaged code?

Managed Code:-

Code that runs under a "contract of cooperation" with the common language runtime. Managed code must supply the metadata necessary for the runtimeto provide services such as memory management, cross-language integration, code access security, and automatic lifetime control of objects. All code based on Microsoft intermediate language (MSIL) executes as managed code.

Un-Managed Code:-

Code that is created without regard for the conventions and requirements of the common language runtime. Unmanaged code executes in the common language runtime environment with minimal services (for example, no garbage collection, limited debugging, and so on).
Read More

Subscribe via email

Enter your email address:

Delivered by FeedBurner