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...


Difference between direct type casting and using "as" keyword?



Difference between direct type casting and using "as" keyword?..

Answer / amitabh dubey

Explicit cast throws an InvalidCastException if the object
can not be casted. you have to
Keep the casting under try / catch block to handle the
exception.
Instead you can use as operator which return null if it
can not cast the object.

Is This Answer Correct ?    25 Yes 0 No

Post New Answer

More C Sharp Interview Questions

Are c and c# the same thing?

0 Answers  


What is dao in c#?

0 Answers  


What are the Types of compatabilities and explain them

0 Answers   DELL,


What is list array in c#?

0 Answers  


What is a clr host?

0 Answers  


What is difference between string and string builder?

0 Answers  


Why we put script in head of asp.net page Why not in body?

1 Answers  


Is predicate a functional interface?

0 Answers  


How to navigate from one page(form) to another page(form) using C#.net...please give me the example

6 Answers  


What?s an interface class?

1 Answers  


What are the Features in .net framework 1.1

0 Answers   Digital GlobalSoft,


What are the differences between static, public and void in c#?

0 Answers  


Categories