C Sharp Interview Questions and Answers - 2
Question: 6
Is string a value type or a reference type?
Reference type with immutable semantics (proof, you can do this: string s= null;)
Question: 7
What are the different types of polymorphism?
There are two types of polymorphism inheritance based and interface based. In inheritance based you have a common base class and in interface based you have a common interface between classes.
Question: 8
Describe the difference between a thread and a process?
A process is a collection of threads (at least one) sharing the same resources (virtual memory, security context, etc.).
A thread is an entity in a process that can actually be executed on the CPU.
Question: 9
What is the difference between Finalize () and Dispose ()?
Finalize () is called by the runtime (the GC) and Dispose () is called by the user.
Question: 10
How do you box a primitive data type variable?
Initialize an object with its value, pass an object, cast it to an object.
- C# Interview Questions and Answers for Freshers
- C# Interview Questions for Experienced Professionals
- C# Interview Questions and Answers for Experienced
- C# Interview Questions with Answers Pdf
- C Sharp Interview Questions and Answers
- C Sharp Interview Questions and Answers for Freshers Pdf
- Top 200+ Advanced C# Interview Questions 2019-2020
- C# Programming Online Test Questions and Answers
- C# Algorithm Interview Questions and Answers
Agricultural Structural and Environmental Control MCQ Quiz More
Science Solutions Class 10 Important Questions and Answers More
Science Solutions Class 10 Important Questions and Answers More
Samacheer Kalvi 10th Science Solutions Questions & Answers More
Samacheer Kalvi 10th Science Carbon and Its Compounds Questions More
1000+ Sentence Rearrangement Questions for SSC CHSL Exam More
1000+ CIMB Aptitude Interview Questions and Answers Pdf More
Computer Objective Questions with Answers Pdf  More
Top 10+ Number Sequence Puzzles with Answers More
Power System MCQ Questions & Answers Pdf More