Java supports only object oriented programmingwhere are C++ supports both functional and object oriented programming. Java is considered secure than C++ due to automatic memory management,sandboxing when using java secure manager and availability of wide range of secure API's.Java is comparitively easier to implement security for a novice developer whereas in C++ the developer should have wide experience on secure coding to implement security properly.