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

Should sn.exe be used before gacutil.exe ?

2 Answers   Accenture, BirlaSoft,


Master Page

1 Answers   Syntel,


How ASP and ASP.NET page works? Explain about asp.net page life cycle?

0 Answers  


Which class provides methods that can be used to manage role membership to be used in user authorization?

3 Answers   Wipro,


What is application Object?

0 Answers   Infogain,






Explain global assembly cache.

0 Answers  


What is cookies cache and session?

0 Answers  


witch is the best insistute in sharpoint course.what abt future of share point course.

2 Answers  


What is the Global.asax used for?

7 Answers   Siebel Systems,


How to register exception filter globally?

0 Answers  


What is the asp.net mvc folder conventions? : asp.net mvc

0 Answers  


Explain Page life cycle

8 Answers   DELL,


Categories