6 Answers - Sort by: Date | Rating
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.
0
0
Guest
answered 8 months ago
Guest
answered 8 months ago
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.
0
0
Guest
answered 7 months ago
Simply we can say that .net is framework where we can use different types of language, whereas java is a programming language.
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 S
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 S
- The Project Aims To Implement A JAVA Parser? 1- Classes And Functions 2- Arithmetic/logic Expressions 3- If Statement
- How To Get Java On My Lg 260?
- Write A Java Program To Store A Number Find If It Is Positive Or A Negative Number If Positive Print I Am The First?
- How To Update The Sim 3 Expansion?
- What Is An Attribute In Java?
- Do I Have To Write A Main Method In Every Class I Create?
- What How The Step For Make Library Management?
- In Which Process We Can Start Java?
- Define The Concept Of Java Byte Code?
- How To Run Remote Method Invocation In More Machine?
- How To Run Java Remote Method Invocation In More Machine?
- How To Make A Java Program That Will Ask The User To Input A Number And Display All The Even Number And The Sum Of All Even Numbers Based On The Inputted/ Given Numbers?
- Is A Static Variable An Instance?
- How To Compile And Run Java Package?
- What Does Literati-on Mean?
- What Is Abstract Class In Details?
- What Is Meant By Remote Method Invocation In Java?
- What Is Meant By Servlet In Java?
- What Is Latest Technologies In Java?
- Write A Program Using Do…..while Loop To Calculate And Print The First M Fibonacci Numbers?
- What Is The Difference Between Reference &instance Variable?
- Why Java Is Slow?
- What Is The Drawback Of Ms Access?
- What Is Replaced In Place Of Pointers In Java?
- What Replaces Pointers In Java?
- What's The Difference Between Java And .net?
- What Is The Difference Between Java And .net?
- What's The Difference Between .net And Java?
- 6) Can You Tell Me Difference Between .net, Java And C++ In Nutshell ?
- What Is The Difference Between Java And .net Language?
- Which IT Skills Are In The Greatest Demand By Employers Between JAVA, .net, VB, And Vb.net?
- Which Course Would Be Better .NET Or JAVA?
- Which Is Better .NET Or JAVA?
- Why Java Is Best Than .net?
- How Can Say .net Is Better Then Java?
- What Is The Advantage Of Java.net?
- Which Is Nowadays More Used .net Or Java?
- Java Or .net Which Is Better For Jobs?
- What Are The All Differences Between Java And .net?

New Comment - Comments are editable for 5 min.