• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

C++ vs Java

 
Ranch Hand
Posts: 352
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey,

What is the most powerful language C++ or Java. I mean pros and cons over two platform and which suit for developing SPEED enterprise level systems?

I know java is passion as a fact

Thank You.
 
lowercase baba
Posts: 13089
67
Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That's not a very well defined question. What do you mean by 'powerful'? Both languages have their strong points and weak points.

Any time someone tries to compare two languages asking which is 'better', I throw back this:

Which is the most powerful tool - a screwdriver or a saw?

It depends on if you want to turn a screw or cut a piece of wood. And if you want to pound in a nail, both are pretty worthless.
 
Harshana Dias
Ranch Hand
Posts: 352
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thankx fred for the reply.

well what about speed of systems?

by the way also which platform will have a good carrier for a developer?

 
Ranch Hand
Posts: 237
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Harshana Dias wrote:What is the most powerful language C++ or Java.



I came accross this quite interesting blog the other day. It's somewhat tilted towards Java but it's still quite fair I think.

http://blogs.azulsystems.com/cliff/2009/09/java-vs-c-performance-again.html

In my view it's definately easier to write a large general application in Java and it's not going to be slower than a corresponding one in C++.
 
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As said in previous replies you can't compare two languages just like that. It depends on your requirements. Java is a better option if your enterprise requires web applications and more object oriented applications. C++ will be a better option if you need to interact with hardware more and do more system programming.
 
Embla Tingeling
Ranch Hand
Posts: 237
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

kranthi kumar.chamarthi wrote:As said in previous replies you can't compare two languages just like that. It depends on your requirements. Java is a better option if your enterprise requires web applications and more object oriented applications. C++ will be a better option if you need to interact with hardware more and do more system programming.



It's perfectly possible to compare two languages without requirements. In fact language comparision and language selection are orthogonal activities. The former is based on objective criteria wheras the latter is based on criteria reflecting specific needs in a specific situation. Language selection is based on language comparision.

So what comparision results did you base your selection advice on?
 
You can't have everything. Where would you put it?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic