Which statements are true about Var keyword?

 Posted by vishalneeraj-24503 on 11/3/2014 | Category: ASP.NET Interview questions | Views: 1778 | Points: 40
Select from following answers:
  1. It can store any type of value but It is mandatory to initialize var types at the time of declaration.
  2. It is type safe i.e. Compiler has all information about the stored value, so that it doesn't cause any issue at run- time.
  3. Var type cannot be passed as method argument and method cannot return object type.
  4. Var type work in the scope where it defined and an implicit type.
  5. All Above

Show Correct Answer


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response