RSS Forums RSS
Please support our C++ advertiser: Programming Forums
Views: 6157 | Replies: 47
Reply
Join Date: Jul 2007
Location: Florida
Posts: 19
Reputation: xander85 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 1
xander85's Avatar
xander85 xander85 is offline Offline
Newbie Poster

Re: C++ Vs Java

  #41  
Jul 21st, 2007
Originally Posted by Killer_Typo View Post
java compilers and the java runtime environment are created using C++


learning both C and C++ is good but you may find yourself trying to unteach yourself things from C when you work in C++.



Second that!
Reply With Quote  
Join Date: Apr 2005
Location: Dundee, Scotland
Posts: 13,441
Reputation: jbennet is just really nice jbennet is just really nice jbennet is just really nice jbennet is just really nice 
Rep Power: 33
Solved Threads: 332
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is offline Offline
Moderator

Re: C++ Vs Java

  #42  
Jul 21st, 2007
why dont they rewrite the java VM in assembley it would be faster. maybe its too big.
TRY MY SUGGESTIONS AT YOUR OWN RISK

Master of puppets Im pulling your strings, blinded by me, you cant see a thing. Master! Master!
Reply With Quote  
Join Date: Nov 2004
Location: Netherlands
Posts: 5,749
Reputation: jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough 
Rep Power: 19
Solved Threads: 200
Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: C++ Vs Java

  #43  
Jul 21st, 2007
because there's no need to. It's plenty fast enough as it is, and the way it's coded now a lot of the codebase is platform independent (meaning it compiles equally well for all platforms Sun supports), reducing lead time and investment drastically.
If written in assembly (or worse, Visual Basic) they'd have to rewrite the entire thing for each hardware and operating system platform supported, which by now has reached quite a number (Sun supporting both 32 and 64 bit versions of Windows, Solaris, and Linux, for a total of something like 10 different distributions).
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote  
Join Date: Feb 2007
Location: Bangalore, India
Posts: 535
Reputation: thekashyap will become famous soon enough thekashyap will become famous soon enough 
Rep Power: 4
Solved Threads: 50
thekashyap's Avatar
thekashyap thekashyap is offline Offline
Posting Pro

Re: C++ Vs Java

  #44  
Jul 21st, 2007
Originally Posted by jbennet View Post
Hey, is the Java VM written in C++ ?
Yeah, I first noticed that "java" executable is written in C/C++ when I had some hotspot error and it wrote down a core file, whose pstack showed calls from main()->createVM()... So it's C at least if not C++.
You can execute "file java" on unix to see this. Also if you have some tools to list out names in a file like nm, or c++filt...

Anyway, that is no scale to say that C/C++ is better than Java.

For the original question, I would say that decide the industry (telecome, services, product-based, web-services...) you wanna go to, and pick based on that. If you donno which industry then just leave C/C++ and Core Java all 3 of them, shouldn't take you long to learn the languages. It will surely take some time to actually be good at programming in ANY 3 of them. Coz write code and write good are different things.
Abt java, given that apart from core java you have a 100 other things you can learn e.g. J2EE itself is a Pandora's box.

A personal note: every time I have interviewed a candidate for a job in my projects, I have looked for language/theoretical knowledge and good attitude in freshers (just outa collage) and programming knowledge in candidates with prior experience.
Are you Agile.. ?
Reply With Quote  
Join Date: Feb 2007
Location: Bangalore, India
Posts: 535
Reputation: thekashyap will become famous soon enough thekashyap will become famous soon enough 
Rep Power: 4
Solved Threads: 50
thekashyap's Avatar
thekashyap thekashyap is offline Offline
Posting Pro

Re: C++ Vs Java

  #45  
Jul 21st, 2007
Originally Posted by jwenting View Post
If written in assembly (or worse, Visual Basic) they'd have to rewrite the entire thing for each hardware and operating system platform supported...
JRE is platform specific. You can't ftp /usr/bin/java from *nix to a windows machine and expect to run a java program using that.
By not writing it in assembly they don't save on that front. I presume, it's just that it's easier to do it in C/C++ than in asm.
Are you Agile.. ?
Reply With Quote  
Join Date: Nov 2004
Location: Netherlands
Posts: 5,749
Reputation: jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough 
Rep Power: 19
Solved Threads: 200
Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: C++ Vs Java

  #46  
Jul 21st, 2007
I know that full well. The BINARIES are platform specific.
A lot of the SOURCE of the JVM however isn't.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote  
Join Date: Jul 2007
Location: Los Angeles, CA
Posts: 8
Reputation: ioillusion is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
ioillusion's Avatar
ioillusion ioillusion is offline Offline
Newbie Poster

Re: C++ Vs Java

  #47  
Jul 23rd, 2007
Originally Posted by jbennet View Post
why dont they rewrite the java VM in assembley it would be faster. maybe its too big.


On a project of that scale, compilers for modern chips would probably optimize the code better than (most) programmers.
Reply With Quote  
Join Date: Jun 2005
Location: Cambridge, MA
Posts: 1,330
Reputation: Rashakil Fol has a spectacular aura about Rashakil Fol has a spectacular aura about 
Rep Power: 7
Solved Threads: 44
Colleague
Rashakil Fol's Avatar
Rashakil Fol Rashakil Fol is offline Offline
Salamander Man

Re: C++ Vs Java

  #48  
Jul 23rd, 2007
Originally Posted by jbennet View Post
why dont they rewrite the java VM in assembley it would be faster. maybe its too big.


Correctness is more important than speed.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 5:35 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC