Answer:
Java is related to C and C++ in the structure of programs composed with each language. All of them are object-oriented-programming languages (oop languages).
Java is meant primarily for web apps
C is meant primarily for programming servers
C++ is meant primarily for large applications