Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 320
  • Last Modified:

Could someone explain me the difference between managed and unmanaged code/executable?

Hi there;

Could someone explain me the difference between managed and unmanaged code/executable?

Regards.
0
jazzIIIlove
Asked:
jazzIIIlove
  • 5
  • 2
  • 2
  • +1
5 Solutions
 
käµfm³d 👽Commented:
Crudely:

       Managed: .NET/Java
   Unmanaged: C/C++

When you think of "managed" code, think "garbage collector".
0
 
jazzIIIloveAuthor Commented:
I got the confuision as does managed  concern Microsoft techs. only or concern java?

Regards.
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
käµfm³d 👽Commented:
I don't recall anyone ever actually mentioning the term "managed" when speaking about Java, but you can think of Java as such. As I said previously, the term "managed" refers to the fact that you have a garbage collector managing the deletion of dynamic memory for you. In a C/C++ environment, you must take care to delete any dynamic memory you allocate.
0
 
jazzIIIloveAuthor Commented:
Ok, so how can one differ the executables (considering we have no idea regarding a GC is managing the code)

Regards.
0
 
jazzIIIloveAuthor Commented:
I mean let's say u have an executable. How can you understand it's managed or unmanaged?

Regards.
0
 
jazzIIIloveAuthor Commented:
Any update?

Kind regards.
0
 
AndyAinscowFreelance programmer / ConsultantCommented:
>>How can you understand it's managed or unmanaged?

If .net is not installed then a managed application will not run.  Unmanaged has no requirement for .net runtimes to be installed.
0
 
jazzIIIloveAuthor Commented:
Good and sensible :)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 5
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now