J2SE 1.5(Java)与.Net 2.0(C#) [英] J2SE 1.5 (Java) vs .Net 2.0 (C#)

查看:72
本文介绍了J2SE 1.5(Java)与.Net 2.0(C#)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚看完这个

http://java.sun.com/developer/techni...leases/j2se15/

我正在纠正这些概念吗?

Java元数据== C#属性(java从c#中学习?)

Java Generics == C#Generics(还有其他什么区别?我听说C#的通用

更快)

Java autoboxing == C#autoboxing(java从c#中学习?)

java enchanced for == C#foreach((java从c#中学习?)

java枚举类型== c#enum(java从c#中学习?)

java static import == c#???

java格式化输入输出== C#console。写?

java varargs == C#params .....(java从c#中学习?)

java concurrent utilities == c#?


i最初选择C#因为它的性能

使用java的SWT和1.5的所有新功能,似乎java是

获得更好地利用更好的交叉平台能力。


会不会像java一样拥有相同的交叉平台能力?

我在中间选择我的

项目选择哪种语言/框架...

thx。


解决方案

仍然没有运营商超载。

这也意味着没有转换......


" babylon" <是*** @ hotmail.com>在消息中写道

新闻:%2 **************** @ tk2msftngp13.phx.gbl ...

我只是阅读本文
http://java.sun。 com / developer / techni ... leases / j2se15 / )我正在纠正这些概念吗?
Java元数据== C#属性(java从c#中学习?)
Java泛型== C#泛型(还有其他区别吗?我听说C#的
泛型更快)
Java autoboxing == C#autoboxing(java从c#中学习?)
java enchanced for = = C#foreach((java从c#中学习?)
java枚举类型== c#enum(java从c#中学习?)
java static import == c#???
java格式化输入输出== C#console.Write?
java varargs == C#params .....(java从c#中学习?)
java concurrent utilities == c#?

我原来是选择C#获得它的性能
使用java的SWT和1.5的所有新功能,它看到了因为更好的交叉平台能力,java会越来越好。

会不会像java一样拥有相同的交叉平台能力?
我在选择哪种语言/框架为我的
项目选择...
thx。



< blockquote> babylon< am *** @ hotmail.com>写道:

我刚看完这个
http://java.sun.com/developer/techni...leases/j2se15/ )我正在纠正这些概念吗?
Java元数据== C#属性(java从c#中学习?)
Java Generics == C#Generics(还有其他什么区别?我听说C#的通用性更快)
Java autoboxing == C#autoboxing(java learn来自c#?)
java enchanced for == C#foreach((java从c#中学习?)
java枚举类型== c#enum(java从c#中学习?)
java static import == c#???
java格式的输入输出== C#console.Write?
java varargs == C#params .....(java从c#中学习?)
java并发实用程序== c#?


你是对的,这些功能将会可用。但是,

他们已经开发了很长时间 - 这不是一个案例

of 从C#学习虽然我敢说C#的存在已经使得这些功能更加敏锐。


.NET泛型肯定比Java,因为我也理解它。

i最初选择C#以获得它的性能
使用java的SWT和来自的所有新功能1.5,似乎java越来越好,具有更好的交叉平台能力的优势。

会不会像java一样拥有相同的交叉平台能力?
我''我正在选择为我的
项目选择哪种语言/框架......




C#本身就是跨平台的,你的确可以获得其他

操作系统的CLR(参见 http:// www .go-mono.com )但你不会得到所有

相同的库(像System.Windows.Forms这样的东西可以被模仿到

在某种程度上,但它不太可能前夕*真的*兼容)。


-

Jon Skeet - < sk *** @ pobox.com>
http://www.pobox.com/~skeet

如果回复小组,请不要给我发邮件


添加Jon所说的内容:


此外,实际的语言功能并不是什么让.net更多

对我有用(我曾经使用过Java)...它是.net框架类

库及其包含的所有内容,P / Invoke的简易性,以及设计

和CLR的功能 - 更不用说优秀的IDE和工具集

支持。


在选择开发平台时需要权衡很多因素

和工具集 - 在我看来,这个语言还有枚举或者不是没有

那个名单上的那个。


只是我的意见

-Philip


" Jon Skeet [ C#MVP]" < SK *** @ pobox.com>在消息中写道

新闻:MP ************************ @ msnews.microsoft.c om ...

babylon< am *** @ hotmail.com>写道:

我刚看完这个
http://java.sun.com/developer/techni...leases/j2se15/ )我正在纠正这些概念吗?
Java元数据== C#属性(java从c#中学习?)
Java Generics == C#Generics(还有其他什么区别?我听说C#的
泛型更快)
Java autoboxing == C#autoboxing(java learn来自c#?)
java enchanced for == C#foreach((java从c#中学习?)
java枚举类型== c#enum(java从c#中学习?)
java static import == c#???
java格式的输入输出== C#console.Write?
java varargs == C#params .....(java从c#中学习?)
java并发实用程序== c#?



你说这些功能是正确的。但是,
他们已经开发了很长时间 - 它'''不是&q的案例uot;从C#学习虽然我敢说C#的存在已经使得对这些功能的需求更加敏锐。

.NET泛型肯定比Java更好,因为我
也理解它。

我最初选择C#以获得它的性能
使用java的SWT和1.5的所有新功能,似乎java是
通过更好的交叉平台能力的优势变得更好。

会不会像java一样拥有相同的交叉平台能力?
我正在挑选哪个我的
项目选择的语言/框架......



C#本身就是跨平台的,实际上你可以获得其他操作系统的CLR (参见 http://www.go-mono.com )但你赢了'得到所有
相同的库(像System.Windows.Forms这样的东西可以在某种程度上被模仿,但它不太可能是* reall y *兼容)。

-
Jon Skeet - < sk *** @ pobox.com>
http://www.pobox.com/~skeet
如果回复小组,请不要给我发邮件



i just read this
(http://java.sun.com/developer/techni...leases/j2se15/)
am I correcting on these concepts?
Java Metadata == C# Attribute (java learn from c#?)
Java Generics == C# Generics (any other difference?i heard that C#''s generic
is faster)
Java autoboxing == C# autoboxing (java learn from c#?)
java enchanced for == C# foreach ( (java learn from c#?)
java enumerated type == c# enum (java learn from c#?)
java static import == c# ???
java formatted input output == C# console.Write?
java varargs == C# params.....(java learn from c#?)
java concurrent utilities == c# ?

i originally pick C# for it''s performance
with java''s SWT and all the new features from 1.5, it seem that java is
getting better with the advantage of better cross plaform ability.

would c# be ever has the same cross plaform ability as java?
I''m in the middle of picking which language/framework to choose for my
project...
thx.


解决方案

Still no operator overloading.
This also implies no conversions...

"babylon" <am***@hotmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...

i just read this
(http://java.sun.com/developer/techni...leases/j2se15/)
am I correcting on these concepts?
Java Metadata == C# Attribute (java learn from c#?)
Java Generics == C# Generics (any other difference?i heard that C#''s generic is faster)
Java autoboxing == C# autoboxing (java learn from c#?)
java enchanced for == C# foreach ( (java learn from c#?)
java enumerated type == c# enum (java learn from c#?)
java static import == c# ???
java formatted input output == C# console.Write?
java varargs == C# params.....(java learn from c#?)
java concurrent utilities == c# ?

i originally pick C# for it''s performance
with java''s SWT and all the new features from 1.5, it seem that java is
getting better with the advantage of better cross plaform ability.

would c# be ever has the same cross plaform ability as java?
I''m in the middle of picking which language/framework to choose for my
project...
thx.



babylon <am***@hotmail.com> wrote:

i just read this
(http://java.sun.com/developer/techni...leases/j2se15/)
am I correcting on these concepts?
Java Metadata == C# Attribute (java learn from c#?)
Java Generics == C# Generics (any other difference?i heard that C#''s generic
is faster)
Java autoboxing == C# autoboxing (java learn from c#?)
java enchanced for == C# foreach ( (java learn from c#?)
java enumerated type == c# enum (java learn from c#?)
java static import == c# ???
java formatted input output == C# console.Write?
java varargs == C# params.....(java learn from c#?)
java concurrent utilities == c# ?
You''re right that those features are going to be available. However,
they''ve been under development for a very long time - it''s not a case
of "learning from C#" although I dare say that C#''s presence has made
the need for those features more keenly felt.

The .NET generics are certainly better than the Java ones as I
understand it, too.
i originally pick C# for it''s performance
with java''s SWT and all the new features from 1.5, it seem that java is
getting better with the advantage of better cross plaform ability.

would c# be ever has the same cross plaform ability as java?
I''m in the middle of picking which language/framework to choose for my
project...



C# in itself is cross-platform, and indeed you can get a CLR for other
operating systems (see http://www.go-mono.com) but you won''t get all
the same libraries (things like System.Windows.Forms can be emulated to
some extent, but it''s unlikely to ever be *really* compatible).

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too


To add to what Jon has said:

Also, the actual language features aren''t what makes .net so much more
productive for me (I used to use Java)... it''s the .net framework class
libraries and all that they contain, the ease of P/Invoke, and the design
and features of the CLR -- not to mention the excellent IDE and toolset
support.

You have to weigh a lot of factors when choosing the development platform
and toolset -- and in my mind wether the language has enums or not is not
that high on that list.

Just my opinion
-Philip

"Jon Skeet [C# MVP]" <sk***@pobox.com> wrote in message
news:MP************************@msnews.microsoft.c om...

babylon <am***@hotmail.com> wrote:

i just read this
(http://java.sun.com/developer/techni...leases/j2se15/)
am I correcting on these concepts?
Java Metadata == C# Attribute (java learn from c#?)
Java Generics == C# Generics (any other difference?i heard that C#''s generic is faster)
Java autoboxing == C# autoboxing (java learn from c#?)
java enchanced for == C# foreach ( (java learn from c#?)
java enumerated type == c# enum (java learn from c#?)
java static import == c# ???
java formatted input output == C# console.Write?
java varargs == C# params.....(java learn from c#?)
java concurrent utilities == c# ?



You''re right that those features are going to be available. However,
they''ve been under development for a very long time - it''s not a case
of "learning from C#" although I dare say that C#''s presence has made
the need for those features more keenly felt.

The .NET generics are certainly better than the Java ones as I
understand it, too.

i originally pick C# for it''s performance
with java''s SWT and all the new features from 1.5, it seem that java is
getting better with the advantage of better cross plaform ability.

would c# be ever has the same cross plaform ability as java?
I''m in the middle of picking which language/framework to choose for my
project...



C# in itself is cross-platform, and indeed you can get a CLR for other
operating systems (see http://www.go-mono.com) but you won''t get all
the same libraries (things like System.Windows.Forms can be emulated to
some extent, but it''s unlikely to ever be *really* compatible).

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too



这篇关于J2SE 1.5(Java)与.Net 2.0(C#)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆