In which type of program we prefer java language. Although we have powerful c++ language. And my last question is what is the advantage of using java language over c++language
We use java with its various featurs.
In java memory management is the duty of JVM but in c++ programer allocate memory, this feature make java robust and program can 't crash.
And last the security .
We use java language because it is platform independent and we can run it on any platform. Rectifing the errors is simple in java compared to c++.