Hi,
If you read my blogs from initial stage, you could have realised one thing. I have started posting series of interview questions in December2006; but I could not continue it. Extremely sorry for it. I will try to post some more questions in the near future.
Here, I will start with C#.NET.
1) What is the difference between a Struct and a Class?
Ans: Structs are value-type variables and are thus saved on the stack, has faster retrieval over other. Structs can not inherit.
2) Can we inherit multiple interfaces?
Ans: Yes, we can.
3) Can we allow a class to be inherited, but prevent a method from being over-ridden?
Ans: We can make class as "public" and leave the method as "Sealed".
4) Will finally block get executed if an exception has not occured?
Ans: Yes.
5) Can we store multiple data types in System.Array?
Ans: No, we can not.
C U soon with some more questions...
Happy coding....!!!!
No comments:
Post a Comment