JAVA 和 .net 在基于 Web 的应用程序开发中有什么区别
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/32407224/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
whats are the differences between JAVA and .net in web based application development
提问by Syed
what are the differences between JAVA and .net and which one is better for developing web based application. Does JAVA has added advantage over .net?
JAVA 和 .net 之间有什么区别,哪一个更适合开发基于 Web 的应用程序。JAVA 是否比 .net 有更多优势?
回答by Amit Bhati
From the link:http://www.geekinterview.com/question_details/39128
来自链接:http: //www.geekinterview.com/question_details/39128
.NET and Java are incomparable guided by the fact that .NET is a framework or simply a platform of presently 43 programming languages,where as Java is a programming language.
.NET 和Java 是不可比的,因为.NET 是一个框架,或者只是目前43 种编程语言的平台,而Java 是一种编程语言。
The ideal of Java has always been a Single language shared by multiple Platforms. Whereas .Net is based on Multiple languages shared by single Platform. Now come to derived differences from this major difference.
1).Net has Multilanguage support. While java has based on java language only. According to Microsoft latest news .Net support around 40 languages including major market share COBOL, Vb.net, C#.net, Perl and many others.
2)Since java is multiplatform so it's set of Framework Classes is limited to what is available on all platforms. While .Net has set of all the Classes available on Microsoft Platform.
3)According to Sun, Java is renowned as “Write once run anywhere”. While .net has no such scene. But my perception is, its not completely true to say “Write once run anywhere” but one aspect is that most of the applications written today focus on one platform only. Similarly to assure its multiple support much time needed to debug it on all platforms. So I would like to say Sun that it's not “Write once run anywhere” but its “Write once and Debug everywhere.
4).Net due to disconnected data access through ADO.Net has hi level of performance against Java JDBC which requires multiple round trips to data base.
5)Java has support to open source platform while .Net has no direct support for Open source Platforms.
Java 的理想一直是多平台共享的单一语言。而 .Net 基于单一平台共享的多种语言。现在来从这个主要差异得出的差异。
1).Net具有多语言支持。而java仅基于java语言。根据微软最新消息,.Net 支持大约 40 种语言,包括主要市场份额的 COBOL、Vb.net、C#.net、Perl 等。
2)由于java是多平台的,所以它的框架类集仅限于所有平台上可用的。而 .Net 已经设置了 Microsoft 平台上可用的所有类。
3)据Sun称,Java以“一次编写,随处运行”而闻名。而.net则没有这样的场景。但我的看法是,说“一次编写即可在任何地方运行”并不完全正确,但一方面是当今编写的大多数应用程序仅专注于一个平台。同样,为了确保它的多重支持,在所有平台上调试它需要很多时间。所以我想说 Sun 不是“一次编写,随处运行”,而是“一次编写,随处调试”。
4).Net 由于通过 ADO 断开数据访问。Net 对需要多次往返数据库的 Java JDBC 具有高水平的性能。
5)Java 支持开源平台,而.Net 不直接支持开源平台。