The biggest difference between Java and .NET is the basic philosophy behind the languages. Java is a programming language designed to be run on many different platforms, and so uses a common language which has to be compiled and run on different platforms (eg. windows, mac and linux). Microsoft, with their offering of .NET, takes on a different approach, by allowing you to program in any language you choose, but has compilers for many different languages that generates a platform specific code (i.e. Microsoft or Windows). Therefore, Java can be used to write programs for many different operating systems, and .NET can be used to make any programming language into a Windows program. This is all based on the original design goals of the programming language, and has both advantages and disadvantages over each other. For example, .NET would be good for integrating legacy code from different languages into a working program, when you don't want to re-write each piece of code into the same programming language. Both .NET and Java are otherwise object-oriented programming languages, with their obvious syntax differences.
".net write any where but runs primarily on Windows" but in Java "java write once but runs anywhere"
Java platform independent .net platform dependent...
Java is more platform independent, it runs on several operating systems including Windows, Mac and Linux. .Net is primarily for Windows. Although the open source project Mono is developing a multi-platform runtime for .Net, so this is less of an issue than it used to be.
Java is more platform independent, it runs on several operating systems including Windows, Mac and Linux. .Net is primarily for Windows. Although the open source project Mono is developing a multi-platform runtime for .Net, so this is less of an issue than it used to be.
Java is object oriented language... Where as .net is both,object oriented n also procedure oriented language...
.net is a frame work .java is a programing language
suported by multiple language
suported by multiple language
.net is the domain whereas Java is one of the many computer languages.
Architecture wise the .NET byte codes gets transformed into a intermediate
language and cached as native code before execution. All most Java2
programming is J2ME specific, but I don't think the Java2 VM Sun provides
for Windows does, one of our Java2 programmers told me that IBM has a
Just-In-Time VM for Win32 that does do this, but it's commerical software
and cost $$$ to license. The result of this is that .NET apps run faster
than Java2 apps on Windows with the default Java2 VM provided by Sun.
Also, Microsoft intermediate language is opened for language developers to
build on (it's actually an Assembly Langauge that you can write in if you'd
like), so C#, VB.NET, COBOL.NET, J#, etc.. All are compiled into MIL
(Microsoft Intermediate Language) if you wanted to create Pearl.NET you
could.
The .NET VM (aka Common Language Runtime) was built primarly with the Win32
API in mind and is closely knit to the Windows platform.
Getting past this the .NET class libraries provide a bit more functionality
than the class libraries provided by Sun (not much, just a bit though). This
is most just utility items (e.g. In .NET if you want to convert from one
data type to another their's a static Convert class that works like a magic
box) there are things missing in .NET though (no Vector, but you can make
one pretty easy)
The primary advantage of .NET (comparing the C# language here to Java2) is
that .NET has Visual Studio.NET (so far I've seen no other IDE that can
match VS.NET, yes I've tried WebSphere, Eclipse, Borland, Sun One, they all
fall short in some areas). The other advantage is ASP.NET which has stolen
the best concepts of JSP, PHP, ColdFusion, and borrowed from classic ASP.
ASP.NET is killer for web apps. (Although the Sun One studio for web
development is good enough that I probably wouldn't switch to .NET just for
ASP.NET at this point)
Java's primary advantage is that you have your choice of third-party tools
(third-party IDE, third-party application server, third-party web server,
etc...) it doesn't bind you to a specific platform and it runs everywhere.
If you're doing Windows development use C# and .NET, if you're app has a
chance to benefit from running on some other platform use J2EE.
language and cached as native code before execution. All most Java2
programming is J2ME specific, but I don't think the Java2 VM Sun provides
for Windows does, one of our Java2 programmers told me that IBM has a
Just-In-Time VM for Win32 that does do this, but it's commerical software
and cost $$$ to license. The result of this is that .NET apps run faster
than Java2 apps on Windows with the default Java2 VM provided by Sun.
Also, Microsoft intermediate language is opened for language developers to
build on (it's actually an Assembly Langauge that you can write in if you'd
like), so C#, VB.NET, COBOL.NET, J#, etc.. All are compiled into MIL
(Microsoft Intermediate Language) if you wanted to create Pearl.NET you
could.
The .NET VM (aka Common Language Runtime) was built primarly with the Win32
API in mind and is closely knit to the Windows platform.
Getting past this the .NET class libraries provide a bit more functionality
than the class libraries provided by Sun (not much, just a bit though). This
is most just utility items (e.g. In .NET if you want to convert from one
data type to another their's a static Convert class that works like a magic
box) there are things missing in .NET though (no Vector, but you can make
one pretty easy)
The primary advantage of .NET (comparing the C# language here to Java2) is
that .NET has Visual Studio.NET (so far I've seen no other IDE that can
match VS.NET, yes I've tried WebSphere, Eclipse, Borland, Sun One, they all
fall short in some areas). The other advantage is ASP.NET which has stolen
the best concepts of JSP, PHP, ColdFusion, and borrowed from classic ASP.
ASP.NET is killer for web apps. (Although the Sun One studio for web
development is good enough that I probably wouldn't switch to .NET just for
ASP.NET at this point)
Java's primary advantage is that you have your choice of third-party tools
(third-party IDE, third-party application server, third-party web server,
etc...) it doesn't bind you to a specific platform and it runs everywhere.
If you're doing Windows development use C# and .NET, if you're app has a
chance to benefit from running on some other platform use J2EE.
Difference between java and .net
Well Java is a Programming Language.
.net IS NOT A LANGUAGE, it is a platform.
Java is open source,
.net platform is lot
Java is 100% platform dependent and portable.
.net is not platform independent.
many many more differences...
Java is a programming language used to create standalone applications while .net is a platform which helps us to develop different types of application depend upon our wish. It give support to build web applications and projects.
Java is basically a programming language which is designed to run on multi-platforms. Java makes use of a common language which can be compiled and run on different platforms like windows, mac and Linux.
On the other hand, .NET allows you to program in any language you wish, however, it uses compilers for different languages so that a platform specific code is generated.
Thus, the basic difference between Java and .NET is that Java can be used for writing programs for different operating systems whereas .NET can be used for making any programming language into a Windows Program
Both Java and .NET have their own advantages and disadvantages and are used for different purposes.
Differences between .Net and Java include
* Java is from Sun, .Net is from Microsoft
* Java is a language plus a run time, .Net is a run time framework that supports multiple languages, Visual Basic and C# (the .Net language most similar to Java) among them.
* C# is very similar to Java but a few years younger, and a bit nicer in some respects - it has a slightly simpler syntax for some common constructs.
* Java is more platform independent, it runs on several operating systems including Windows, Mac and Linux. .Net is primarily for Windows. Although the open source project Mono is developing a multi-platform run time for .Net, so this is less of an issue than it used to be.
* .Net has a more integrated development environment, as the IDE, runtime and server all come from Microsoft as a standard package, while Java is based on third-party tool and server providers. It used to be the case that the .Net development environment was clearly superior, but the difference is smaller these days.
By
vijayakumar.k
* Java is from Sun, .Net is from Microsoft
* Java is a language plus a run time, .Net is a run time framework that supports multiple languages, Visual Basic and C# (the .Net language most similar to Java) among them.
* C# is very similar to Java but a few years younger, and a bit nicer in some respects - it has a slightly simpler syntax for some common constructs.
* Java is more platform independent, it runs on several operating systems including Windows, Mac and Linux. .Net is primarily for Windows. Although the open source project Mono is developing a multi-platform run time for .Net, so this is less of an issue than it used to be.
* .Net has a more integrated development environment, as the IDE, runtime and server all come from Microsoft as a standard package, while Java is based on third-party tool and server providers. It used to be the case that the .Net development environment was clearly superior, but the difference is smaller these days.
By
vijayakumar.k
Difference between Java & .net
The main difference is that Java is programming language while .net is a framework which is implemented and used with various programming languages like Visual Basic, C#, Fortran and etc. So comparing java and .net is like comparing painting and frame. 1)java and .net both are programing language.
If you want to know in detail then you can get help from our experts at CodeAvail- Online Computer Science Assignment
help
Java is a site where you could get games and other things.. A net is your internet co...Take care.
Java's primary advantage is that you have your choice of third-party tools
(third-party IDE, third-party application server, third-party web server,
etc...) it doesn't bind you to a specific platform and it runs everywhere.
more that java support multi-programing and .NET support multi-languages
(third-party IDE, third-party application server, third-party web server,
etc...) it doesn't bind you to a specific platform and it runs everywhere.
more that java support multi-programing and .NET support multi-languages
Why do we use interface in java?
In c++ we have the advantage of implementing multiple inheritance where as in java we can't implement multiple inheritance directly for that purpose we are using interface.
In c++ we have the advantage of implementing multiple inheritance where as in java we can't implement multiple inheritance directly for that purpose we are using interface.
Java is platform independent, only thing we need is jvm on the platform which comes in all operating systems by default,.net is also platform independent as it needs only .net framework,but since m$ owns the copyright to the .net framework api's,it becomes platform dependent.
Java uses a common language while in .net we can use many languages and it generates a platform specific code.
Java uses a common language while in .net we can use many languages and it generates a platform specific code.
Here is a list of reasons why JSP is better than PHP:
* Anything you can do with PHP, you can do with JSP; the reverse is not true
* JSP is much more powerful, since it has access to all the Java libraries. PHP only has access to PHP libraries
* JSP is Object-Oriented, so leads to cleaner code that's easier to debug, maintain, and improve. (PHP also allows objects, but the object model is more primitive, and most scripted pages ignore PHP objects and just use normal variables.)
* The equivalent syntax in JSP is just as simple to learn, so you can get up and running just as quickly -- that is, there's no extra startup cost in using Java, at least not a significant one
* Java programmers (as opposed to 15-year-old hackers or HTML monkeys) appreciate the importance of a clean language with complex OO data structures and strong typing
* With JSP, if the code inside a page gets too big, or if you want to use it elsewhere, you can cut it out, make it into a Java class, and invoke it from anywhere in your application (even not from a page). With PHP, you're stuck inside the HTML box.
* JSP's concept of state management and persistence is more explicit and powerful than PHP's. With JSP, you can specify whether a variable persists for the page, the request, the session, or the application (or if it's just local to the function). The JSP engine automatically does the right thing with cookies so you have access to the variable on later requests. With PHP, you just have "global" and "not global", you don't have automatic session management, and have to do your state thing manually with cookies or hidden variables.
* Anything you can do with PHP, you can do with JSP; the reverse is not true
* JSP is much more powerful, since it has access to all the Java libraries. PHP only has access to PHP libraries
* JSP is Object-Oriented, so leads to cleaner code that's easier to debug, maintain, and improve. (PHP also allows objects, but the object model is more primitive, and most scripted pages ignore PHP objects and just use normal variables.)
* The equivalent syntax in JSP is just as simple to learn, so you can get up and running just as quickly -- that is, there's no extra startup cost in using Java, at least not a significant one
* Java programmers (as opposed to 15-year-old hackers or HTML monkeys) appreciate the importance of a clean language with complex OO data structures and strong typing
* With JSP, if the code inside a page gets too big, or if you want to use it elsewhere, you can cut it out, make it into a Java class, and invoke it from anywhere in your application (even not from a page). With PHP, you're stuck inside the HTML box.
* JSP's concept of state management and persistence is more explicit and powerful than PHP's. With JSP, you can specify whether a variable persists for the page, the request, the session, or the application (or if it's just local to the function). The JSP engine automatically does the right thing with cookies so you have access to the variable on later requests. With PHP, you just have "global" and "not global", you don't have automatic session management, and have to do your state thing manually with cookies or hidden variables.
Both Java and .NET have same value.
We can develop an application faster using .NET when compare to Java.
But in security point of you Java take High Priority.
We can develop an application faster using .NET when compare to Java.
But in security point of you Java take High Priority.
Java is plateform independent because supported by more than one operating system.but .net is supported by only one os(windows).java use only one language but .net is supported by more than one languages(c#,j#,Vb,c++).
Java have high level security than .net.
Java have high level security than .net.
Main thing about java is that it is OPEN SOURCE you can find codings from anywhere whereas .net its a little bit complicated to get and build guyz.....but for sure .net gona rule in future
.net has dot & java has a island
NET and Java are incomparable guided by the fact that .NET is a framework or simply a platform of presently 43 (approximately) programming languages,where as Java is a programming language.
Java is platform independent on the other hand .NET is language independent ie applications written in any programming language supported by .NET framework can be converted to any other language supported by the framework.(languages supported are VB.NET,C#.NET,J#.NET etc)
Java Is now open Source where as .Net is not
and My personal Opinion
java Is easy and beautiful, but .Net is Ugly and highly Abstract...
Hope It Helps!
Java is platform independent on the other hand .NET is language independent ie applications written in any programming language supported by .NET framework can be converted to any other language supported by the framework.(languages supported are VB.NET,C#.NET,J#.NET etc)
Java Is now open Source where as .Net is not
and My personal Opinion
java Is easy and beautiful, but .Net is Ugly and highly Abstract...
Hope It Helps!
Difference between java and .net
.NET is completely an object oriented but java is not pure.Because in java we can,t initialize variables as objects but in .NET.