473,473 Members | 1,923 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

.NET vs. Java

What are the pros and cons of Java?
How does Java measure up to .NET in terms of speed?
How about in terms of depth of classes?

I am looking for garbage collection while at the same looking for speed.
Java and .NET seem to be the only two application platforms offering
both, any suggestions?

Thanks all!!
Jul 17 '05 #1
4 5284
Arich Chanachai wrote:
What are the pros and cons of Java?
How does Java measure up to .NET in terms of speed?
How about in terms of depth of classes?

I am looking for garbage collection while at the same looking for speed.
Java and .NET seem to be the only two application platforms offering
both, any suggestions?


A couple of days ago, I read this:

http://weblogs.java.net/pub/wlg/1847
"Conflicting mindsets of C# vs. Java"

The difference is not features, but mindset.

Edwin Martin

--
http://www.bitstorm.org/
Jul 17 '05 #2
Edwin Martin wrote:
Arich Chanachai wrote:
What are the pros and cons of Java?
How does Java measure up to .NET in terms of speed?
How about in terms of depth of classes?

I am looking for garbage collection while at the same looking for
speed. Java and .NET seem to be the only two application platforms
offering both, any suggestions?

A couple of days ago, I read this:

http://weblogs.java.net/pub/wlg/1847
"Conflicting mindsets of C# vs. Java"

The difference is not features, but mindset.

Edwin Martin

Great article, thanks. Still doesn't answer my Qs as I'm sure there ARE
differences in speed and some cases features as well. I wonder if he is
right about Java eating DotNET. We shall see. An open source version
of DotNET called Mono is in existence and under constant development. I
wonder if they will integrate the Java DotNET tools.
Jul 17 '05 #3
On Wed, 15 Sep 2004 17:07:10 -0400, Arich Chanachai
<ma*******@fastmail.fm> wrote:
Edwin Martin wrote:
Great article, thanks. Still doesn't answer my Qs as I'm sure there ARE
differences in speed and some cases features as well. I wonder if he is
right about Java eating DotNET. We shall see. An open source version
of DotNET called Mono is in existence and under constant development. I
wonder if they will integrate the Java DotNET tools.


How big of a difference is going to make or break you? I asked this
question of the head computer science guru at a place I used to work a
bit ago. He said that Java is an interpreted language and therefore a
little slower and less apt to be used in software where clock speeds
and critical timing are important.

I am not saying Java is not useful or good... I am learning it now and
love it. More than I liked C++ 6.0 when I learned it.

But I am a strong beleiver in the statement made earlier that the
difference is in mindset and not in features. I also think there is a
proper tool for every job... so dont look for just one solution to
every problem in existance.
Jul 17 '05 #4
da Vinci wrote:
How big of a difference is going to make or break you? I asked this
question of the head computer science guru at a place I used to work a
bit ago. He said that Java is an interpreted language and therefore a
little slower and less apt to be used in software where clock speeds
and critical timing are important.


The "fact" that Java is slow is a myth.

See for examples these benchmarks:

http://www.osnews.com/story.php?news_id=5602

Image:
http://www.osnews.com/img/5602/results.jpg

Java is slow with trigonometric functions (like sinus).

Looking at the other tests, Java is comparable to C++!

How is that possible? Java compiles the byte code to fast machine code.
And because Java compiles the code while the program is running, it can
make better optimizations than a oridinary "compile-before-running"
compiler.

Also because Java doesn't know pointers also makes it possible to make
some serious optimizations a C++ compiler can't make.

Edwin Martin.

--
http://www.bitstorm.org/
Jul 17 '05 #5

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

Similar topics

0
by: Ravi Tallury | last post by:
Hi We are having issues with our application, certain portions of it stop responding while the rest of the application is fine. I am attaching the Java Core dump. If someone can let me know what...
1
by: ptaz | last post by:
Hi I'm trying to run a web page but I get the following error. Ca anyone please tell me a solution to this. Thanks Ptaz HTTP Status 500 - type Exception report
11
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in...
0
by: mailkhurana | last post by:
Hii , I am trying to use a type 2 driver to connect to DB2 0n AIX 5 I have a small java test to class to establish a conneciton with the db .. I am NOT using WAS or any appserver When I try to...
1
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej...
12
by: Mark Fink | last post by:
I wrote a Jython class that inherits from a Java class and (thats the plan) overrides one method. Everything should stay the same. If I run this nothing happens whereas if I run the Java class it...
0
by: jaywak | last post by:
Just tried running some code on Linux (2.4.21-32.0.1.EL and Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)) and Windows XPSP2 (with Java HotSpot(TM) Client VM (build...
1
by: jaimemartin | last post by:
hello, I want to validate an xml by means of a schema (xsd). To do that first of all I´m using a SchemaFactory. The problem is that if I run the code in Windows all works fine, but If I run it in...
0
oll3i
by: oll3i | last post by:
package library.common; import java.sql.ResultSet; public interface LibraryInterface { public ResultSet getBookByAuthor(String author); public ResultSet getBookByName(String name);
0
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,...
0
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.