Question 1 Similarities between Java and C++ Both Java and C++ are known to support method overloading in a similar manner. Java and C++ also lack support of direct higher order functions; instead they provide a way of imitating their behavior. Another notable similarity between java and C++ is that they both provide third level of access control ‘private’ and they both offer ‘static’ members. Furthermore, both Java and C++ are not purely object-oriented, they are hybrid since they fail to satisfy all the specifics of object-oriented languages (Kedar 2008).
Differences between Java and C++
Java provides a mechanism of garbage collection while C++ does ...