January 11, 2016

Platform Independence of .NET Platform,Advantage,Disadvantages

Platform Independence of .NET Platform

Its lang independent as long as that language's compiler targets the managed environment.. i.e, code written in C#.net or VB.Net or any other .Net compliant language will result in the same IL.
certainly .net doesn't compile in UNIX. No compilers til date i suppose.. Heard that something similar exists to compile .net in Linux tho'..

Platform Independent does not mean O S independence in .NET terms. It means you can build a managed code and be assured it works on 32 - bit m/c, 64 bit m/c etc. Of course, at present it only supports Windows as O S, but Microsoft has left open the UNIX ( or any other O S for that matter) implementation of .NET run time. Lot of open source projects are going on in this regard.

Advantages of asp with c sharp over asp with vb.net

ultimately both copies in to MSIL, it depends on what application designing and what is the background of the developers who work for.

C# more structured and fully OOP enabled, even VB is OOP enabled, but I don't thing VB.Net supports operator overloading etc..

There is only Syntactical difference between these two:
1)Vb.Net is not Case Sensitive while C# is.
2)Statement Delimiter in VB.Net you use carriage return to separate sentences while in C# you need a ;(Semi Colon)
3)Declaring variables.
4)Data type names line integer in VB.Net and int in C#.

ts is just political choice for the PM/DM to choose C# or VB.Net with ASP. (Excluding resource capability matrix)

In my career graph, I have never seen the problem which tends to write operator overloading for the web application domain. Frankly, operator overloading may be targeted where responsibilities are driven with some kind of mathematical equation...

Its true that ASP.NET is more popular with C#. But, it has nothing to do with language capabilities but at the root where we people start learning OOPS(C++). And we imagine "class" more closer with C# syntax. There are other psychological phenomenon are there... but i don't have rights to bog you people.

Differences between .NET application and a Java application

Net is a technology, Java is a programming language.
.Net is emerging, java is already well established.
this question in a interview is to test your presence of mind and to see how many differences you say, is something like asking difference between a rose and lilly.