Question:
which is better java or c++ ?
Medhane
2015-06-23 09:54:00 UTC
which is better java or c++ ?
64 answers:
?
2015-07-01 09:21:26 UTC
Java
?
2015-07-01 11:24:20 UTC
It depends what you want to do, what language you know how to code in and what an employer wants.



C++ has been around longer, it's more established in certain areas. For example,the game industry, or any heavy 3D application development, the employer will typically expect new employees to be able to program in it. Some argue that due to it's method of operation, that C++ compiles into native code rather than Javas Bytecode, and because of lots of automated memory memory allocation, it's better for games development as it can run more efficiently.



Java is a more appropriate language for cross-platform development, it will technically run on any platform, MacOS, Windows, Linux, mobile platforms or any device that has a JVM (java runtime environment) you can run a Java application. While C++ on the other hand has to have native libraries installed to deal with rendering, networking, threading etc specifically for a particular OS.





Syntactically they're incredibly similar, to the point that the unfamiliar would not be able to tell the difference between a C++ class and a Java class. In fact the primary difference is how they handle memory allocation.





tl;dr: The best language is the one you like to use/can get paid to use.
Jacob
2015-06-29 08:01:22 UTC
Java is the best for modding Minecraft, in fact, if you know Python, Java will be a breeze for you. I don't know Python too well but if you know Scratch, that can help a little bit. Java is better because you can do much more than C++. Java is better.
daniel
2015-07-05 19:11:08 UTC
Java,
Rafaqat Mehmood
2015-06-30 18:24:50 UTC
Definitely java is better as compared to C++ because Java is more-than just 'object oriented programming'.
BABUL
2015-07-06 22:56:05 UTC
C++ is used to create System Software and Application Software. You need to develop the GUI by hard coding it.



Java is more suited for development of Web Application with security features. Here you may get many editors for dragging and dropping the various Form controls to create a GUI easily and instantly.





C++ and Java both are OOP langauge.
Nouman samad
2015-07-04 23:04:09 UTC
I go with Java
Alina
2015-07-07 03:32:08 UTC
Java is a good language than c++.
tuhin
2015-07-01 03:53:01 UTC
I think c++ s best between java and c++.
Cody The Coder
2015-06-26 10:16:34 UTC
Actually, I don't like a lot of these answers.



Consider mine.



C++ is a language that is compiled (obfuscated) down to Assembly, which is in binary representation, or commands to be run one by one. It is much like batch's goto system. Anything that supports running this code will be able to utilize it, naturally.



Java is similar. Though, Java requires another step in the process. It runs in its own assembly code to assembly, naturally like other languages (mainly script languages). It's super language is C.



There are multiple levels of languages that interact with the system.

C

C++

C#

Java



This list above is the order of closeness of a few languages. C is the closest you can get to the system, but things take too long to make and do in C for a lengthy project such as a video game. That is why people extend things.



Libraries are what makes up a language. If a language has bad libraries, then it has bad functionality. Good libraries are made by me and you, and default libraries included.



C++ and Java are well known for their outstanding libraries. C# tends to focus more on framework, or graphical user interface design, though it is important to show another example of a language.



C++ is a very messy code.

Java is a very clean code.



They both can and do the same thing.



C++ offers memory management.

Java does that automatically.



C++ offers user-garbage collection.

Java offers auto-garbage collection.

Garbage collection is the releasing of unused resources.



C++ is close to C which makes programming games extensive, but not as extensive as C.... no not at all.

I personally find Java fun to make games in.



Overall performance:

C - fastest running

C++ - a tad bit slower than C

Java - 10% slower than C



For preformance, C++ will run better (giving in blind to the programmers coding techniques)



Java is a perfect beginners language.



C++ is better

Java is love, Java is life. (and better packages, personally thought)



You decide really.



One more thing. If you choose C++, you will type double and sometimes triple what you would need to in Java.
?
2015-07-02 05:27:37 UTC
C++ is the better than Java.
?
2015-06-29 03:43:14 UTC
Yeah, i will say java because it is too much secure and comfortable.java is based on oops and if we compare java and c++ then java is too much advance than c++ so i will prefer java than c++
2015-07-04 00:37:43 UTC
Java is better then c++ because is pure object oriented programming language and you can build all type application in java like Web application, Desktop application, etc.
MoMaYa
2015-07-04 10:13:09 UTC
Ilove c++but java's better
?
2015-06-23 18:05:20 UTC
Java has more overhead, but takes care of some things like garbage collection for you automatically, and the compiled code can probably run on any device with the same Java version. C++ has less built-in overhead, but you may have to take care of some things like garbage collection manually, and you may have to recompile for different devices.
deny
2015-06-30 04:59:12 UTC
I will prefer to say jave because java is more secure than any other language
sasa
2015-06-29 04:51:43 UTC
java or c++ both are good but in comparison java is more good and we should use java
Thirumalaik
2015-07-06 00:22:34 UTC
java
?
2015-07-05 12:16:44 UTC
java
Steve
2015-07-04 03:25:41 UTC
java
2015-06-29 00:33:23 UTC
java
?
2015-07-01 08:35:03 UTC
learning of java is very easy than c++.......in case of java no need to do must of the thing because SUN micro system already given......this ans is as a student not as a profession.....In case of profession which is better I don t know .....
Muvhuso
2015-07-05 12:56:43 UTC
i go with java
Shohag
2015-06-24 18:32:44 UTC
As your choice. Sometimes Java is better again C++ is better.
William
2015-06-28 00:10:33 UTC
Well, Java depends on a package, but it really depends on you.
?
2015-06-27 11:45:00 UTC
C++ can be used to make anything. C++ is more complex, faster, and lower level. Everything is made from C (which c++ is derived from)

Just because java is more popular doesn't mean its better.
?
2015-06-30 09:09:12 UTC
It's exactly hard to say which one is better.All languages exsisted now have their own advantages or disadvantages. I'm java learner,and I think it's pretty good.
TANBHIR HOSSAIN
2015-06-30 23:33:04 UTC
Both are good if you want to develop mobile you can use java and if you want to others development like website,software i suggest you to use c++.
Alace
2015-06-27 22:32:29 UTC
java
Scop
2015-06-24 01:04:55 UTC
Both language has own functionality but Java can be combination of many languages like C , C++ and old languages. C++ has fully object oriented languages and java is a platform independent and object oriented also.
?
2015-06-24 02:54:44 UTC
Both Languages are the Good. Java is fully object oriented Programming Language. Java is Square Language. Java is based on the Class and Object.







Object Oriented: In Java, everything is an Object. Java can be easily extended since it is based on the Object model.



Platform independent: Unlike many other programming languages including C and C++, when Java is compiled, it is not compiled into platform specific machine, rather into platform independent byte code. This byte code is distributed over the web and interpreted by virtual Machine (JVM) on whichever platform it is being run.



Simple:Java is designed to be easy to learn. If you understand the basic concept of OOP Java would be easy to master.



Secure: With Java's secure feature it enables to develop virus-free, tamper-free systems. Authentication techniques are based on public-key encryption.



Architectural-neutral :Java compiler generates an architecture-neutral object file format which makes the compiled code to be executable on many processors, with the presence of Java runtime system.



Portable:Being architectural-neutral and having no implementation dependent aspects of the specification makes Java portable. Compiler in Java is written in ANSI C with a clean portability boundary which is a POSIX subset.



Robust:Java makes an effort to eliminate error prone situations by emphasizing mainly on compile time error checking and runtime checking.



Multithreaded: With Java's multithreaded feature it is possible to write programs that can do many tasks simultaneously. This design feature allows developers to construct smoothly running interactive applications.



Interpreted:Java byte code is translated on the fly to native machine instructions and is not stored anywhere. The development process is more rapid and analytical since the linking is an incremental and light weight process.



High Performance: With the use of Just-In-Time compilers, Java enables high performance.



Distributed:Java is designed for the distributed environment of the internet.



Dynamic: Java is considered to be more dynamic than C or C++ since it is designed to adapt to an evolving environment. Java programs can carry extensive amount of run-time information that can be used to verify and resolve accesses to objects on run-time.
Robert J
2015-06-25 00:09:53 UTC
C++ without a doubt.



Java cannot work without a relatively massive "Runtime environment" package on the machine it's to run on (the "JRE").



The reason for that is Java only compiles to intermediate code [P-Code], which is then run on the jre system.



If a particular "target" system does not have a JRE, it cannot ever run Java programs.

That may be because it's a smaller system such as an embedded controller, or because the system designers do not like the two-stage pcode system.



With C/C++, you can write an operating system or program a tiny 8 Pin microcontroller - you cannot do either with Java, it needs an existing operating system to run the JRE and masses of memory and resources for that to run in.





C++ (including C) compile to machine code for the target system.

That code runs directly on the CPU.



C++ is the ONLY serious language you can use to write cross-platform apps that can be built for both Android & iOS (Apple) [and PCs etc. if you want] from the same source code.



(There are other languages used by cross-platform development systems, but Java is not one of them).
Ronit
2015-06-27 11:09:36 UTC
java
Sandeep
2015-06-24 23:01:09 UTC
Java is fully object oriented Programming Language.Java is based on the Class and Object. C++ was designed for systems and applications programming extending the C programming language. both language are the good. both small program C++ can be used and for big program java is better.
Suresh Naga
2015-06-24 22:29:20 UTC
Java is good
?
2015-06-27 12:53:57 UTC
if you wanted to know one programming language i suggest you must be learn java.
Russ
2015-06-27 02:17:32 UTC
Java is better.
?
2015-06-24 19:37:35 UTC
C++ is most used on graphical stuff such as OPENGL and DIRECTX and most of games on the world are built using C++. C++ is often can considered to be used by expert because of its complexity in programming.



Java is most used on mobile devices and currently become more popular because of ANDROID. All program written on ANDROID are using JAVA as their language. JAVA is often can considered to be used by everybody because of its simplicity on programming.



For many years, the only problem in C++ is memory allocating.
Rishab
2015-06-27 22:59:50 UTC
It depends on how you intend to use any of these. Before you do anything, you need to think through of all your plans. Do a little online research on advantages of these languages. Maybe either one may have an advantage over there for some specific purposes? Who knows.
2015-06-25 03:46:08 UTC
Java is fully object oriented program.
?
2015-06-23 21:45:11 UTC
Bot languages are good.If you know C++ then learn java or visa versa
?
2015-06-24 03:33:54 UTC
If you know c or C++ then learn java or visa versa
Michael
2015-06-24 22:24:33 UTC
Java is more popular than C++ in this day and age.



Java:

Pros: Cross platform(JVM), more devs

Con: If the program is bigger, then it is slower (Unnoticable)

C++:

Pros: Cross platform (Recompiled per platform), fast, native to system

cons: Needs to be recompiled per platform
?
2015-06-24 23:25:23 UTC
Everyone point of view is different on this answer but if you consider both languages both are good as per their use.Java is a enhancement of C++ and you will know better enhancement always better than previous one their is only a few chance were their where enchancement is not better than previous one.Java is most important language in today's world and can be used widely.
Uttam karmokar
2015-06-24 00:58:20 UTC
For small program C++ can be used and for big program java is better.
2015-06-24 13:44:14 UTC
Which is better? A jewelers screwdriver or a torque wrench? Kinda depends on what it is that you want to do - put a head on an engine block or a new battery in your watch, doesn't it? Same with computer languages - many have things they are better at doing, and things they are worse at doing - if you need to interface your code to hardware, then you want "C" or ASM; if you are doing general purpose code - then any one will do.
Luke
2015-06-27 10:27:41 UTC
Neither:



Take a look at C#



It has:

Ling

Entity Framework

WCF

WPF

etc
john
2015-06-26 12:42:57 UTC
java in indeed best
panama
2015-06-25 22:13:22 UTC
go for java



java is better compared to c++



for more reference you can view link

http://www.panamatechnologies.com/

https://www.facebook.com/panamatechs
?
2015-06-27 12:47:16 UTC
C++
Sakib Ahmed
2015-07-07 11:52:47 UTC
C++
?
2015-07-05 23:18:10 UTC
Actually they are almost equal. Start with one simple language like python, know the basics and then you can comfortably move to any language.
steward
2015-06-27 03:57:36 UTC
java is good.
Fazlul
2015-06-23 10:08:09 UTC
C++ is for HTML design and java is the accesories. Combination of both web site will be more powerfull.
mdigitale
2015-06-23 10:33:06 UTC
It depends what you're trying to do. Given the choice between the two, I almost always choose C++.
?
2015-06-25 09:45:50 UTC
C++
2015-06-27 03:19:51 UTC
It really depends on the project. Although they both are highly adaptable they are not meant for the same type of work.
?
2015-07-30 02:22:40 UTC
C+++ is better
2015-07-02 08:47:09 UTC
everything depends on you . one can write bad code best language
?
2015-07-01 08:11:03 UTC
Both are good
Andy T
2015-06-24 22:26:12 UTC
You will be dictated on which language for whatever project you do; but C++ is no doubt extremely archaic.
Vanvikki3
2015-06-25 21:26:24 UTC
It depends on your computer picks up with what the fast.
?
2015-06-27 05:49:18 UTC
Both have there specific use...
v
2015-06-26 11:21:55 UTC
c#


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