Q. What are the difference between Visual basic and .net languages?
Difference between VB and VB.NET
- VB.NET is a modern, object-oriented language. VB (Classic) is its predecessor, and it's no longer actively maintained.
- Up to version 6, it was known as VB. From version 7, which was released with .Net 1.0, it was known as VB.NET.
- Visual Basic.NET is one of the language tools supported within the larger Visual Studio .NET suite. Visual Basic .NET is based on a newer programming model than is VB6. The VB Classic IDE is unsupported as of April 8, 2008.
- VB6 was interpreter based language while VB.NET is a compiled language.
- It also supports constructors and destructors.
- VB6 is non-object oriented principle based language. Whereas, VB.NET , from a coding style perspective looks similar to old VB6, but, has more power to it, just because it sits on the .Net platform.
- Data Handling in VB6 is DAO protocol, then RDO, followed by ADO (ActiveX Data Objects) while VB.Net Data is handled using ADO.net
- The greatest change in VB6 and VB.NET is of runtime environment. VB6 used the VB-Runtime while VB.NET uses the .Net Common Language Runtime (.Net CLR). The CLR is much better designed and implemented than VB-Runtime. The CLR uses better code translation through Just in Time compiler while VB-Runtime interprets the code. The CLR Garbage Collector is also more efficient than VB6 one as it may detect cyclic references too.