Q1: Will C++ die?
Q2: Will C++ die before Java does?
The answer to Q1 is obvious. However,
To answer Q2, you'll have to find their strength and
potential alternatives. C++ is bound to *iux, and just
because it is bad, no one is going to invent a replacement
with similar features (thus similar mess). As to JAVA,
there are at least 5 ready alternatives, and there
could be another one in another day. Java is not the
best talking about modularity and is not the best in
programming language design. The only thing it can
cling on is its current user base.
CMU already terminated teaching OO, and completely
removed related courses from its core (interested
students can take electives). When OO is gone, so
will be JAVA's user base.