| Managed Code | Unmanaged Code |
| 1. Managed code is executed by the CLR, instead of Operating System. | 1. Unmanaged code is executed by the Operating System directly. |
| 2. Managed code gets the benefit of services provided by CLR like Memory Management (Garbage Collector), Thread Management, Exception handling, Type Checking etc. | 2. Unmanaged code doesn't get any benefit of CLR and all things should be manage by programmer itself. |
| 3. Code compiled by the compiler into the IL code and then again compiled by JIT to native/machine code. | 3. Code compiled by the compiler into the Native/Machine code directly. |
| 4. Ex. C#,J#,Vb.net etc. | 4. Ex. Code written in C language, C++ language etc. |
Showing posts with label C. Show all posts
Showing posts with label C. Show all posts
Sunday, May 8, 2016
Difference between Managed and Unmanaged code in ASP.net
Labels:
C,
C#,
C++,
CIL,
CLR,
Common,
compilation,
compiler,
Garbage collector,
IL,
JIT,
Machine,
managed code,
MSIL,
Native,
Operating,
OS,
System,
Type checking,
unmanaged code
Tuesday, September 8, 2015
OOPS Concept - OVERLOADING - a compile time Polymorphism - Early Binding - C#
OVERLOADING:
Hello friends, here i am explaining the OVERLOADING topic.. an favorite interview topic.
Few Questions that frequently ask in the interviews:
1. How do we overload a method ?
2. What is Polymorphism ?
2. What is Compile time polymorphism ?
2. What is Early Binding / Diff. between Early and late binding ?
3. What is Static and dynamic polymorphism ?
4. Do we overload method with ref or out in signature ? -- YES
5. Do we overload method by return type of method ? -- NO
6. Do we overload a method by using static keyword ? -- NO
7. Overloading is a run time or compile time polymorphism ? -- Compile time
Polymorphism is one of the OOPS concept, Polymorphism means same name with different behaviors.
Compile Time polymorphism OR Early Binding OR Static Polymorphism all are different names of OVERLOADING.
Overloading is the way where you can define methods with the same name but having different functionality that's meet the definition of Polymorphism ( i.e one name many forms.)
Labels:
access modifier,
answers,
ASP.net,
C,
C#,
compile time polymorphism,
concept,
Early binding,
interview,
OOP,
OOPS,
out,
Overloading,
questions,
ref,
return type,
signature,
static polymorphism
Subscribe to:
Posts (Atom)