Wednesday 25 June 2014

What are the categories of data types in CTS and explain in details?

CTS is devided in to two categories:
  1. Values type
  2. Reference type
Value type:
  • The data types which store the data directly in to the memory locations is known as value types.
  • Memory is allocated at Compilation Time.
  • Memory allocation is Made with in the Stack i.e in contiguous memory locations
  • CLR does not provide automatic memory management.
Reference type:
  • The data type which do not store the data into there memory locations rather refers to other memory locations is known as reference types.
  • Memory is allocated at Run Time.
  • Memory allocation made with in the heap i.e Random Memory Locations.
  • CLR provides Automatic memory management.

No comments:

Post a Comment