Search This Blog

Saturday, February 6, 2010

.NET Framework and Visual Studio

In order to run any program developed in .NET Platform,you need to have .NET Framework in your machine............... .NET Framework is the layer which is installed on an Operating System(Windows) which holds everything you need to run a .NET Application..........

VS.NET makes it much easier to create applications on the .NET Framework by generating source code when you i.e build a web form.
you could say that VS.NET is a very fancy notepad fro creating .NET Applications in any way,shape or form............

Platform Dependent versus Platform Independent


Platform Independent means the execution of the program is not restricted by the type of Operating system environment provided........thereby,make it possible to process the program at any type of environment available.Java is platform independent language because byte code magic of java.when we execute the source code,it generates the .class file comprising the bytes codes.Bytes codes are easily interpreted by JVM which is available with every type of OS we install..............
whereas C and C++ compiled languages which makes them platform dependent.
The source code written in C/C++ gets transformed into an object code which is machine and OS(operating system) dependent.thats the reason why C and C++ are termed as Platform Independent................
In Java,the source program is first compiled hat genrates byte code which is common for all platform.The byte code is given to JVM(interpreter)........each platform has its own JVM.....which converts byte codes into machone language that can be understood bt the particular machine only.Once the machine having JVM,it can run any any Java Platform.In C/C++ the source program directly compiled into machine code which is platform dependent.

JVM ARE PLATORM DEPENDENT............
Java compiler and JVM are independent of each other.............Java compiler and JVM both are platfrom dependent........

JAVA COMPILER::this is used to convert java program in the form of "byte codes" that is nothing but class file and this compiler is coming different for different platform(Window,Linux etc)......so this is platform dependent........

JVM::It is use to run "byte codes",this byte code is common for all the platform,because all the compiler convert java code into byte code that is common for all and JVM can understood only byte code and can ru this byte code on any platform, but again you required compitable JVM for that platform......
RESULT::Both Java compiler and JVM are platform dependent but Java Applications are platfrorm independent because you take byte code(.class file) to any other platform and can run using JVM............

ASP.NET is platform depending.......
we run asp.net webpage,system must contain IIS and VisualStudio.net are required but IIS supports only Windows Operating System........So,after first compilation of asp.net source code i.e MSIL code(.dll),we cant run it on other OS........

I think when people say platform independent,then it means that they are talking about client...........Clients can be anything--firefox,netscape,wince,safari etc running on windows,mac,linux etc..........lets accept this it is not platform independent..............you can say it is partially independent............
because as we very well know that .net framework just run on Microsoft OS only.........but using MONO,we can use this on Linux also.............

HTML is platform independing........
MSIL is independent CPU instructions..........
Result::
.Net is platform dependent because it needs Windows OS,but it is machine independent because it doesn't depends directly on the machine instructions..........

My Profile

My photo
can be reached at 09916017317