Integer , structure – System.ValueType — Allocated memory on stack , infact integer is primitive type recognized and allocated memory by compiler itself .
Infact , System.Int32 definition is as follows :
[C#]
[Serializable]
public struct Int32 : IComparable, IFormattable, IConvertible
So , it’s a struct by definition , which is the same case with various other value types .
Object – Base class , that is by default reference type , so at runtime JIT compiler allocates memory on the “Heap” Data structure .
Reference types are defined as class , derived directly or indirectly by System.ReferenceType
Categories
Tags
about answer Answers Anyone asked Auctions Best career CCNA Certification COMPUTER Cycle debugging Development exam find from good help Inheritance Interview JAVA know latest life microsoft need Oracle Please Programming question Questions should Software Some someone Tell Testing there these think this want Winform Would