1.what type of inheritance supported in java.
2.what is the advantage of java over C++.
Java supports following inheritance types:
Advantages of Java over C++: 1)Java is pure object oriented programming language but C++ is not.
2)Java is platform independent but C++ is not.
3)Java is consistent,compact and portable but C++ is not.
4)Java has safe and secure execution environment in comparison to C++.
5)C++ have no built-in support for text strings but in Java, strings are implemented as first class objects.