Chapter 4 Flashcards
What is difference between byte code and instruction set
both are same thing but instruction set is compiler dependent.
What is JAVA virtual machine
Byte code to instruction set is called Java virtual machine. It gives plate form independence. It also controls memory allocation.
What is JIT
Just in time compilation means only compile the part which is necessary
What is garbage collection
It deletes such memory locations which are not referred
What is COM
component object model, Microsoft component based programming. Its basic purpose is OLE (object linking and embedding)
What are ActiveX controls
These are com objects
What is clean room implementation
We take a program, reverse engineer it and write its specifications. And then write a program from scratch by following these specifications. In this way, we are not copying anything and no illegal activity and copyright problem. C# is a clean room implementation of JAVA by microsoft.
C# is strict Boolean. What is strict Boolean
Either it takes true or false
Is C# totally garbage collected
Yes
Does C# have multiple inheritance
No
What are 2 common types in C#
- Value type (No referential identity)
2. Reference type (Referential identity and referential identity get compared)
What is boxing and unboxing
int foo = 42; // value type
object bar = foo; // foo is boxed
int foo2 = (int)bar; // unbox back