Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is the use of "default" and "Using" keyword?

Answers were Sorted based on User's Feedback



What is the use of "default" and "Using" keyword?..

Answer / pavan kumar

"default" is a keyword which can be used in two ways
1)In switch as default label
2)In generics as default paramenter.

same as "using" key word this also used in two ways
1)For implementing the namespace into current class
2)Used to check properly dispose of object using the
IDisposable interface

Is This Answer Correct ?    9 Yes 0 No

What is the use of "default" and "Using" keyword?..

Answer / ravi

"default" ensures the correct initialisation takes place
and "Using" ensures the disposal of object.

Is This Answer Correct ?    6 Yes 2 No

What is the use of "default" and "Using" keyword?..

Answer / kamil

If expression does not match any constant-expression, control is transferred to
the statement(s) that follow the optional default label. If there is no default
label, control is transferred outside the switch.

Is This Answer Correct ?    3 Yes 3 No

Post New Answer

More C Sharp Interview Questions

Code to run exe like mspaint,autocad etc in asp.net.

2 Answers  


What is a service layer c#?

0 Answers  


What is application object in c#?

0 Answers  


directcast(123.34,integer) - should it throw an error? Why or why not?

2 Answers   Wipro,


Is c# good for games?

0 Answers  


Explain types of comment in c# with examples

0 Answers  


What is the difference between as and is operators in c#?

0 Answers  


What is mvc firstordefault?

0 Answers  


Why do I get a "cs5001: does not have an entry point defined" error when compiling?

0 Answers  


What?s a delegate?

8 Answers   CTS, Visual Soft,


How do you concatenate in c#?

0 Answers  


Can you prevent your class from being inherited and becoming a base class for some other classes?

5 Answers  


Categories