PHP syntax is closed with

PHP syntax is closed with

Explanation

C++ and Java differ in their platform dependency, memory management, and use of classes.

C++ is platform dependent and needs to be compiled on every platform.

Java is platform-independent.

Once it's compiled into bytecode it can be executed on any platform.