473,320 Members | 1,832 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

J2SE 1.5 (Java) vs .Net 2.0 (C#)

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.


Nov 15 '05 #1
9 1783
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.


Nov 15 '05 #2
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
Nov 15 '05 #3
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

Nov 15 '05 #4
Hi

Easy: If you need platform independence go with Java.
Else stick with C#.

Even if I must admit that Java 1.5 with the new features and the fast
SWT (It's even faster than Windows.Forms on my machine :)) is nice. The
main reason for choosing a platform is personal preference and
what do you think what you get as answer in a .NET newsgroup if you ask
a question of platform choice?
(And you may imagine the answer you'll get to the same question in a
java newsgroup.)

Regards
Mike
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.


Nov 15 '05 #5
> what do you think what you get as answer in a .NET newsgroup if you ask
a question of platform choice? ..Net is support to be platform independent....

"Mike Krüger" <mi**@icsharpcode.net> wrote in message
news:40**************@icsharpcode.net... Hi

Easy: If you need platform independence go with Java.
Else stick with C#.

Even if I must admit that Java 1.5 with the new features and the fast
SWT (It's even faster than Windows.Forms on my machine :)) is nice. The
main reason for choosing a platform is personal preference and
what do you think what you get as answer in a .NET newsgroup if you ask
a question of platform choice?
(And you may imagine the answer you'll get to the same question in a
java newsgroup.)

Regards
Mike
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.


Nov 15 '05 #6

"Action" <ch**********@hotmail.com> wrote in message
news:eB**************@TK2MSFTNGP12.phx.gbl...
what do you think what you get as answer in a .NET newsgroup if you ask
a question of platform choice? .Net is support to be platform independent....

Technically it is, practically it isn't currently. System.Windows.Forms
won't port well, some other code relys on Windows specific stuff and the
implementation we work with is not aimed at platform independence, its a
Microsoft platform. Mono is a possible alternative but I doubt it'll ever be
fully up to speed(even now it has a long way to go, the compiler is far from
perfect).

Anyway, .NET and Java are platforms, the OS they run on its largely
irrelevent in a perfect world(usually always relevent in the real world).
However, they are platforms onto themselves.
"Mike Kr$B!&(Ber" <mi**@icsharpcode.net> wrote in message
news:40**************@icsharpcode.net...
Hi

Easy: If you need platform independence go with Java.
Else stick with C#.

Even if I must admit that Java 1.5 with the new features and the fast
SWT (It's even faster than Windows.Forms on my machine :)) is nice. The
main reason for choosing a platform is personal preference and
what do you think what you get as answer in a .NET newsgroup if you ask
a question of platform choice?
(And you may imagine the answer you'll get to the same question in a
java newsgroup.)

Regards
Mike
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.



Nov 15 '05 #7

"Mike Krüger" <mi**@icsharpcode.net> wrote in message
news:40**************@icsharpcode.net...
Hi

Easy: If you need platform independence go with Java.
Else stick with C#.

Even if I must admit that Java 1.5 with the new features and the fast
SWT (It's even faster than Windows.Forms on my machine :)) is nice. The
main reason for choosing a platform is personal preference and
what do you think what you get as answer in a .NET newsgroup if you ask
a question of platform choice?
(And you may imagine the answer you'll get to the same question in a
java newsgroup.)
I'm still having trouble with SWT. There is just somethign about that
architecture that bugs me, I can never get it right. Thats probably one of
the reasons I've never been too gung0ho with java.
Regards
Mike
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.


Nov 15 '05 #8
Daniel O'Connell [C# MVP] <onyxkirx@--NOSPAM--comcast.net> wrote:
I'm still having trouble with SWT. There is just somethign about that
architecture that bugs me, I can never get it right. Thats probably one of
the reasons I've never been too gung0ho with java.


I haven't used it myself (outside modifying Eclipse - isn't having an
open source IDE great?) but others who've used it seem to like it, and
if Eclipse is anything to go by it can certainly be used to create
lovely UIs.

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

"Jon Skeet [C# MVP]" <sk***@pobox.com> wrote in message
news:MP************************@msnews.microsoft.c om...
Daniel O'Connell [C# MVP] <onyxkirx@--NOSPAM--comcast.net> wrote:
I'm still having trouble with SWT. There is just somethign about that
architecture that bugs me, I can never get it right. Thats probably one of the reasons I've never been too gung0ho with java.
I haven't used it myself (outside modifying Eclipse - isn't having an
open source IDE great?) but others who've used it seem to like it, and
if Eclipse is anything to go by it can certainly be used to create
lovely UIs.

I have heard many good things about it(except some parts of the look, as a
whole I'm not a fan of a few things, like checkboxes, even with some of the
nicer L&F's). I just can't seem to find a good tutorial, the lack of
properties and a general unease with java keeps me from groking it right off
the bat. I'll probably get around to it eventually. --
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too

Nov 15 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Phil | last post by:
I went to sun to get J2SE 1.4.2 and fount only J2SE v 1.4.2 with NetBeans IDE v 3.5 Cobundle is there a place for just 1.4.2 and no netbeans?
2
by: Steven J Sobol | last post by:
This is driving me insane. Previously J2SE 1.4.2/NB 3.51 worked on my week-old Dell Inspiron Windows XP laptop. I figure it's something I downloaded from Windows Update that caused NB to stop...
1
by: Naresh Agarwal | last post by:
Hi Is there any difference between JDK and J2SE? What is standard name of Java distribution - JDK or J2SE? Also when we say JDK 1.3, Does it mean JDK 1.3.x or a specific version say...
0
by: Mark McKay | last post by:
I'm trying to build my first WeStart aware application. I've JARed it and assembled my HTML and JNLP files, but am having a lot of trouble with the <j2se> tag. I would like my users to use Java...
1
by: tmb | last post by:
I'm a newbie to Java. At http://java.sun.com/j2se/1.4.2/download.html I see I can download... NetBeans IDE + J2SE SDK as a 'bundle' I beleive is both NetBeans and the Java SDK... My...
2
by: danthefirst2000 | last post by:
Guys, I downloaded J2SE v 1.4.2_05 SDK from the sun site. Installed it fine on my laptop which runs on XP. Now I want to start writing some small programs and play around a bit. I also bought...
3
by: MassDev | last post by:
I just saw a web-demo of a veeery cool java builder. The guy built two complete apps (one a databse app) in like five minutes. Salesy stuff is at http://www.ics.com/products/java/
0
by: JeanReno | last post by:
Hello. I can't download J2SE SDK from the Sun Java site. I think the reason is authorization.Maybe I'm in a country is not authorized to download files from this site. Is there any other sites...
2
by: Radster | last post by:
Hi... im really new to java, and ive tried to program a simple HELLO WORLD app, which displays the text in the command line (im using Windows XP Pro, so its MS DOS). Everything is fine during...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shćllîpôpď 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.