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

Answer Posted / narayan sahu(netx)

Yes, because the specified type and the runtime type is not
same

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you define the lease of the object in .net?

562


Can a try block have more than one catch block?

617


What are Attributes in .NET?

588


If any body working in Infosys, please can u give me the referense to that company because i hered that their is openings for freshers with referal..

1504


Can I write my own .net host?

627






Explain what is mutex?

594


i had attended to infosys interview on 17th april 2010...on .net..3+ experience for Technology Analyst .. to my knowledge i did well in technical and hr whether i loose the interview or still processing is taking place..am confused please. what accuatly would be happend?

1947


How server form post-back works?

585


Explain what is the difference between a class and an object, and how do these terms relate to each other?

545


How can you assign an rgb color to a system.drawing.color object?

557


Explain asp.net?

614


Example from .net. Integer & struct are value types or reference types in .net?

554


How many types of generations are there in a garbage collector?

521


What do the terms “boxing” and “unboxing” mean?

540


What is the use of immutability?

610