difference between java and c++
Anonym
- C++ is platform-dependent vs Java is platform-independent. - C++ is mainly used for system programming vs Java is mainly used for application programming. It is widely used in window, web-based, enterprise and mobile applications. - C++ supports goto statement vs Java doesn't support goto statement. - C++ supports multiple inheritance vs Java doesn't support multiple inheritance through class. It can be achieved by interfaces in java. - C++ supports operator overloading vs Java doesn't support operator overloading. - C++ supports pointers. You can write pointer program in C++. Java supports pointer internally. But you can't write the pointer program in java. It means java has restricted pointer support in java. - C++ supports both call by value and call by reference vs Java supports call by value only. There is no call by reference in java