Question: what are the difference between java and c++?
Answer: C++ is compiled and run using the compiler which converts source code into machine code so, C++ is platform dependent. Java uses compiler and interpreter both. Java source code is converted into bytecode at compilation time. ... Java is interpreted that is why it is platform independent.