Question:
C++ Or Java - Which One?
y4h0ooo0
2008-11-21 11:24:07 UTC
C++ Or Java?

which is better? and your reason
Five answers:
xxxjj18
2008-11-21 11:39:11 UTC
Also a broad question(I say this because I just answered one :P):



It depends; what would you like to make in them? Now, I'm not fluent with EITHER language, but from my perceptions and based off of what I've seen accomplished with them, this is what I've concluded(geeky, I know :P):



Java-

This would be best to make an in-depth, 3D game, IMO; it is mainly used for this purpose, according to what I've seen.

C++-

You can make games with this, but Java would still be better for that... But this would be more towards windows programs and .exe files, like a program to help you with something or something like that.



Hope this helps, though it probably won't :P
pezzerdep
2008-11-21 11:45:21 UTC
C++

-Sometimes executes a little bit faster.

-More powerful in doing low-level stuff (pointers)

-More games, operating systems written with C / C++

-Doesn't necessarily translate to other OS as easily.





Java

-Easier to use on multiple operating systems

-Probably quicker to learn.

-Easier to program with (not as many risks for subtle errors)

-Used for business applications

-Sometimes getting the right Java version is a pain!



I'm sure some expert will chime in with other reasons and/or disprove my reasoning, but those are some factors as I see it. Some people just like the "feel" of C++. Some people who want to get the job done think Java is the way to go. It really depends on what you want to accomplish. If you're looking for a language to start learning, I would say... pick Java. If you want to be a hacker or game programmer, C++. For the most part, you can't go too wrong either way. They're similar and you can switch without too much problem later.
JavaMaster
2008-11-21 11:47:18 UTC
It depends on your application.



C++ is an object oriented language but it is CPU dependent. It however can run faster because it is complied to machine code.



Java on the other hand is ran by an interpreter. It uses just in time or real time compiling. The interpreter. Ite pre-written for each CPU witch is "Java Runtime" most people already have installed to view certain websites. This was its original design, to expand capabilities of websites and animate content. The down side is it runs a little slower using more processor time for the intinterpreter

I favor C++ for larger stand alone applications and Java for web programing.



I hope this helps.
someguy
2008-11-21 11:55:36 UTC
Java is being empowered by the frameworks and enterprise packages provided by Sun.

I'm a big fan of Java because I love its syntax, I like how it enforces OOP and good practices (like checking exceptions). But, I've always wondered why there isn't so many applications written in Java. However, I was proven wrong when I entered the I.T business. It seems like most major and big companies use Java Enterprise Edition (Java EE). Java EE provides a reliable platform to deploy big enterprise applications, many frameworks have been written to develop enterprise services with Java EE (Banking systems, publishing, pharmaceutical).

On the other hand, IMO, Java desktop edition (Java SE) doesn't have the same popularity. Most end-user applications (word processors, email clients, browsers, games, ...etc) are usually written in other languages (mostly C/C++). The reason behind this is that C++ compiled applications (exe) are faster to execute in limited end-user machines (your desktop or laptop). Java executables are binary codes that need to be executed by a Java Virtual Machine making it slower to run.



To summarize:

Java: Use it for big and huge Information Systems. If you are looking for a job. Learn about Java EE (Learn about EJB, Application Servers - jboss,tomcat,glassfish). Java is also popular in Mobile applications

C++: If you want to write fast executable applications (e.g. heavy games, browsers, word processor, OS :), ...etc). If you are looking for a job for Games development company, learn about this
deonejuan
2008-11-21 11:43:07 UTC
Java comes with Buttons.

The future of software will be datastores ( database with persistance capabilities). In that, java wrote the book for web distribution and presentation.

Java is a 10meg (version java 7) plug-in.



to compare, one would have to turn to C# and .net. DotNet holds the promise of the same code libraries supporting many technologies across the IT environment. .net is a 9 gigabyte plug-in to make a single button functional. Everything MS requires purchase of a license to use their product(s).



Therefore, because a SysAdmin can purchase support, if need be, so to defend his job tenure, there will be a proclivity towards buying a job firewall with Microsoft at the boss' expense.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...