Answer:
both programming languages have their strengths and weaknesses when it comes to security.
Step-by-step explanation:
C++ is a low-level programming language that gives developers more direct control over the system's hardware and memory. While this can be useful for performance and efficiency, it can also make it easier to introduce vulnerabilities such as buffer overflow attacks if not used carefully.
Java, on the other hand, is a high-level programming language that runs in a virtual machine, which provides a layer of abstraction between the code and the system's hardware. This makes it less vulnerable to low-level attacks, but it can still be vulnerable to higher-level attacks such as SQL injection and cross-site scripting (XSS).