What is strong-typing versus weak-typing? Which is
preferred? Why?

Answers were Sorted based on User's Feedback



What is strong-typing versus weak-typing? Which is preferred? Why?..

Answer / vetri

Strong type is checking the types of variables as soon as
possible, usually at compile time. While weak typing is
delaying checking the types of the system as late as
possible, usually to run-time. Which is preferred depends
on what you want. For scripts & quick stuff you’ll usually
want weak typing, because you want to write as much less
(is this a correct way to use Ensligh?) code as possible.
In big programs, strong typing can reduce errors at compile
time.

Is This Answer Correct ?    8 Yes 1 No

What is strong-typing versus weak-typing? Which is preferred? Why?..

Answer / kirti

Strong typing implies that the types of variables involved in operations are associated to the variable, checked at compile-time, and require explicit conversion; weak typing implies that they are associated to the value, checked at run-time, and are implicitly converted as required. (Which is preferred is a disputable point, but I personally prefer strong typing because I like my errors to be found as soon as possible.)

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

Asp.Net Source :- In my project i have gridview control - item template. Its have asp:button control. my requirement is while click this button i need to display some alert message. Could you please help me which gridview event i need to write source code? Please give me a quick response. Thanks

6 Answers  


Elaborate differentiation between Cache and Application?

0 Answers   QuestPond,


If 200 is for all successful operation then why do we have 201 response codes?

0 Answers  


What is meant by ispostback in asp net?

0 Answers  


How does asp page work?

0 Answers  






Explain the steps needed to be performed in order to create an animation in xaml?

0 Answers  


what is difference between const, static and readonly?

2 Answers   TVS,


Explain about asp.net state management?

0 Answers  


Why do we need Sessions?

0 Answers   QuestPond,


What is the function of new view engine in asp.net? : asp.net mvc

0 Answers  


what is the requirement that .Net web services can access the java application?

6 Answers   iSoft,


Describe the diffeerence between inline and code behind?

0 Answers  


Categories