Development Fundamentals Flashcards
1
Q
What items are stored on the Heap?
A
A Reference Type goes on the Heap
- class
- interface
- delegate
- object
- string
2
Q
What items are stored on the Stack?
A
Value Types go on the Stack
- bool
- byte
- char
- decimal
- double
- enum
- float
- int
- long
- sbyte
- short
- struct
- uint
- ulong
- ushort
3
Q
What is the Stack?
A
Is responsible for keeping track of where each thread is during the execution of our code (or what’s been called).
4
Q
What is the Heap?
A
Is responsible for keeping track of our objects (Also garbage collection is used when object is not referenced anymore)
5
Q
What is the importance of Generics?
A
- Application performance due to eliminating the need for boxing and unboxing
- Type-safety
- Higher quality code because you get to reuse data processing algorithms without duplicating type-specific code
- Parametric polymorphism
- Code is not duplicated for multiple types of data
6
Q
What is Marshaling?
A
//TODO