473,699 Members | 2,768 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.....(jav a 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 1811
Still no operator overloading.
This also implies no conversions...

"babylon" <am***@hotmail. com> wrote in message
news:%2******** ********@tk2msf tngp13.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.....(jav a 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.....(jav a 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.co m>
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.co m> wrote in message
news:MP******** *************** *@msnews.micros oft.com...
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.....(jav a 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.co m>
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.....(jav a 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**@icsharpco de.net> wrote in message
news:40******** ******@icsharpc ode.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.....(jav a 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**********@h otmail.com> wrote in message
news:eB******** ******@TK2MSFTN GP12.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**@icsharpco de.net> wrote in message
news:40******** ******@icsharpc ode.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.....(jav a 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**@icsharpco de.net> wrote in message
news:40******** ******@icsharpc ode.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.....(jav a 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.co m>
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.co m> wrote in message
news:MP******** *************** *@msnews.micros oft.com...
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.co m>
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
2293
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
2869
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 loading when I double-clicked it (thanks for exceeding my expectations, Microsoft, XP is more of a piece of crap than I originally figured). So since I didn't have a copy of the J2SE SDK handy, I downloaded the 1.4.2/NB 3.5.1 bundle.
1
8728
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 JDK1.3.1_07? thanks,
0
1500
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.4.2 or later. (I have 1.4.2-b28 myself). However, when I use the tag <j2se version="1.4.2+"/>, web start replys that a JVM of this version is not installed, and that it cannot find an appropriate JVM to download either. Changing that to...
1
2476
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 Question:
2
4104
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 the book Java 2 by Example (2nd Edition) by Jeff Friesen. Now where do I start from? Does J2SE v 1.4.2_05 SDK come with a development tool. I complied a demo program. (clock.java) It created a .class file. What do I with that? Pls help
3
2760
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
1543
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 that has J2SE SDK on their server that I can download? ( Not just has a link to the Sun java site). Thank you.
2
1887
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 compiling, but when i attempt to run, typing "java HelloWorldApp", java displays this message: Exeption in thread "main" java.lang.NoClassDefFoundError: HelloWorldApp pleas can sum1 help... thanks!!!;-)
0
8686
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8615
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9173
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
7748
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6533
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4375
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4627
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2345
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2009
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.