C#.Net Interview Question and Answers

31. What is serialization?
  Serialization is the process of converting an object into a stream of bytes.
De-serialization is the opposite process of creating an object from a stream of bytes.
Serialization / De-serialization is mostly used to transport objects.
 
Your Name Your Email-ID
Your Answer
32. What are the difference between Structure and Class?
 
  • Structures are value type and Classes are reference type
  • Structures can not have contractors or destructors.
  • Classes can have both contractors and destructors.
  • Structures do not support Inheritance, while Classes support Inheritance.
 
Goutamikumbhar, says Jan 24,2014
Structure allocates the memory for object on the Stack & classses allocates memory for object on the heap.
Rakesh, says Jan 04,2014
Structures can have constructors. but they cant have explicit parameters constructors.
Your Name Your Email-ID
Your Answer
33. What is difference between Class And Interface?
  Class : is logical representation of object. It is collection of data and related sub procedures with defination.
Interface : is also a class containg methods which is not having any definations.Class does not support multiple inheritance. But interface can support.
 
Your Name Your Email-ID
Your Answer
34. What is Delegates?
  Delegates are a type-safe, object-oriented implementation of function pointers and are used in many situations where a component needs to call back to the component that is using it.
 
Your Name Your Email-ID
Your Answer
35. What is Authentication and Authorization?
  Authentication is the process of identifying users. Authentication is identifying/validating the user against the credentials (username and password).
Authorization performs after authentication. Authorization is the process of granting access to those users based on identity. Authorization allowing access of specific resource to user.
 
Your Name Your Email-ID
Your Answer