Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 07-21-2006, 07:19 AM   #1 (permalink)
complete
Code Monkey
 
complete's Avatar
 
Join Date: Jul 2005
Location: St. Louis
Posts: 76
complete is on a distinguished road
C# or C++ Advantages over Java

What advantages -- if any -- does C# have over Java?
What advantages -- if any -- does C++ have over Java?
__________________
46 45 52 4D 49 20 57 41 53 20 4A 45 44 49 2E 10
20 53 41 47 41 4E 20 57 41 53 20 53 49 54 48 2E
complete is offline   Reply With Quote
Old 07-21-2006, 10:25 AM   #2 (permalink)
DJMaze
Senior Contributor
 
DJMaze's Avatar
 
Join Date: Mar 2005
Posts: 733
DJMaze is on a distinguished road
C++: Speed, loads of speed.

Don't compare Zend vs C++ because the Zend software has Java "built-in", any application you create depends on the JRE which is slow as hell.

There are benefits in Java, but you didn't ask that.

C# sucks in my opinion because it is M$ and it is RAD and due to that, hard to code to your hand if you need modifications.
DJMaze is online now   Reply With Quote
Old 07-26-2006, 01:47 PM   #3 (permalink)
toe_cutter
Code Monkey
 
Join Date: Aug 2002
Location: Boston, MA
Posts: 79
toe_cutter is on a distinguished road
Send a message via ICQ to toe_cutter Send a message via AIM to toe_cutter Send a message via Yahoo to toe_cutter
This is really a tough subject because what someone considers an advantage someone else might not.

I can tell you what Java does not have that C++ does.
  • No global variables
  • No pointers
  • No support for mulitple inheritence
  • No support for templates
  • Cannot overload operators
  • No preprocessor

Now like I said some people may thinks these are disadvantages and others advantages. For me C++ gives you enough rope to hang yourself if your not careful, and Java gives you less rope.

TC
__________________
toe_cutter is offline   Reply With Quote
Old 07-26-2006, 04:49 PM   #4 (permalink)
AssKoala
Anti-Zealot
 
AssKoala's Avatar
 
Join Date: Feb 2006
Location: Atlanta, GA
Posts: 72
AssKoala is on a distinguished road
Send a message via AIM to AssKoala Send a message via MSN to AssKoala Send a message via Yahoo to AssKoala
Quote:
Originally Posted by DJMaze
C++: Speed, loads of speed.
Not always the case. In many cases, the speed differences between C#, C++, and Java are nominal. I/O operations will take the same time whether they are called from a C program or a Java program, for example.

Quote:
Originally Posted by complete
What advantages -- if any -- does C# have over Java?
Broad, but the langauges are similar enough to make an overview doable.

Advantages:
- C# executes significantly faster.
- C# gives you closer access to DirectX.
- Use of C# allows you to use other .NET enabled langauges interchangeably in your code.
- Interoperability with C++ and other languages
- C# is an open standard, Java isn't. I don't care about this one, but most people who say dumb things like "C# is M$" have no idea what they're talking about seeing as C# and the associated Intermediate Languages are completely open while Java is 100% controlled by Sun.
- Platform Independence.
- Many more. Try out google.

Disadvantages:
- While C# is platform independent, the .NET implementation of the MSIL is not.
- Java has a longer history (e.g. more libraries are around for Java)
- Java's containers don't suck ass

Quote:
Originally Posted by complete
What advantages -- if any -- does C++ have over Java?
Too broad of a question to answer in a webforum. Use google. I'll get you started.
__________________
If you always think like an expert, you'll always be a beginner. | "A handful of knowledgeable people is more effective than an army of fools" -Writing Secure Code, 2nd Ed.
AssKoala is offline   Reply With Quote
Old 07-27-2006, 04:54 PM   #5 (permalink)
Valmont
[code][/code] enforcer
 
Valmont's Avatar
 
Join Date: Mar 2003
Location: Netherlands
Posts: 1,544
Valmont is on a distinguished road
Don't think in terms of advantages, think in terms of needs or requirements. If this is setup properly, the right tool for the right job wil emerge.
__________________
Valmont is offline   Reply With Quote
Old 08-03-2006, 12:27 PM   #6 (permalink)
kyoryu
Registered User
 
Join Date: Apr 2003
Posts: 34
kyoryu is on a distinguished road
Quote:
Originally Posted by AssKoala
Disadvantages:
- While C# is platform independent, the .NET implementation of the MSIL is not.
But, there is an open-source version available. It's not at 2.0 yet, though.

Quote:
Originally Posted by AssKoala
- Java has a longer history (e.g. more libraries are around for Java)
How's the interop between Java and c/c++ (native) libraries? I know C# is getting better - there may not be as many native libraries, but it's pretty easy to hit native C++ libs from C#.

Quote:
Originally Posted by AssKoala
- Java's containers don't suck ass
C# containers don't suck ass in .NET 2.0. They did prior to that, though.

Valmont is right, though - think in terms of requirements for the job at hand. There's no "best" tool, only the best tool for the job you're trying to do.
kyoryu is offline   Reply With Quote
Old 08-04-2006, 05:28 AM   #7 (permalink)
AssKoala
Anti-Zealot
 
AssKoala's Avatar
 
Join Date: Feb 2006
Location: Atlanta, GA
Posts: 72
AssKoala is on a distinguished road
Send a message via AIM to AssKoala Send a message via MSN to AssKoala Send a message via Yahoo to AssKoala
Quote:
Originally Posted by kyoryu
But, there is an open-source version available. It's not at 2.0 yet, though.
Yeah, but it isn't stable enough. I mean, I'm on the side of the fence that says .NET on non-Windows = unstable = nono.


Quote:
Originally Posted by kyoryu
How's the interop between Java and c/c++ (native) libraries? I know C# is getting better - there may not be as many native libraries, but it's pretty easy to hit native C++ libs from C#.
Well, you can interop in any .NET language (some things may need to be wrapped in C#), but Java is nowhere near the interoperability of .NET.

Quote:
Originally Posted by kyoryu
C# containers don't suck ass in .NET 2.0. They did prior to that, though.
Yeah, that is true, but a lot of people aren't writing their apps in .NET 2.0 yet.

Quote:
Originally Posted by kyoryu
Valmont is right, though - think in terms of requirements for the job at hand. There's no "best" tool, only the best tool for the job you're trying to do.
Aye, most def.
__________________
If you always think like an expert, you'll always be a beginner. | "A handful of knowledgeable people is more effective than an army of fools" -Writing Secure Code, 2nd Ed.
AssKoala is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Java Advantages complete Java 2 07-21-2006 10:59 PM
Java Resources Belisarius Java 0 03-28-2005 03:03 PM
From C to Java HighterDK Java 11 07-13-2004 08:15 PM


All times are GMT -8. The time now is 03:47 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting