C# Interview Questions Part - 1
KMarks - Not your grandmothers bookmarks - Your feedback and suggestions are needed.C# Interview Questions Part - 1
Hello All,
I will be posting interview questions on various programming topics and all will be under interview questions tag. Prepare well for your interviews.
1) What is Boxing And UnBoxing ???
A) Boxing is the process of casting a value type as a reference type and storing the object on the heap. Unboxing is the process of casting a reference type as a value type and storing the value on the stack.
2) Can the web service’s methods be overloaded?
A. Yes, but the overloaded methods should be given a different name in the [WebMethod] methods attribute.
3) What is the difference between Debug and Trace class ?
A. Debug class is enabled only in debug builds. Trace class is available in both Debug and Release builds.
4) What is Method Overloading ?
A. Method Overloading is having the same method name and implementing different code by having different datatypes for parameters or different order of parameters of different datatypes or different number of parameters.
NOTE: Method overloading cannot be implemented based on return type.
5) What is method overriding ?
A. Method overriding is having the same signature as a method but implementing different functionality.
6) Can you inherit multiple interfaces for a class ?
A) You cant inherit, but you can implement multiple interfaces for a class.
C# Interview Questions Part - 1
Tags: C#, Interview Questions
June 3rd, 2008 at 10:23 am
Hi… really good work…. i got some questions fro this blog also…
http://free-interviewtips.blogspot.com/