Why Java Does Not Support Multiple Inheritance?

In this tutorial you will learn why java does not support multiple inheritance. It is a very popular and frequently asked java interview question. What is Multiple Inheritance? When a class inherits two or more classes then this scenario is called as multiple inheritance. Also Read: Why Java Does Not Support Pointers? Why Java Does Not Support Multiple Inheritance? Lets consider a situation to understand this. There are three classes A, B and C. A and B class contains a method

Read more

Why Java Does Not Support Pointers?

Below are some reasons why Java does not support pointers. Although there are various advantages of pointer but it has several disadvantages that I have mentioned in the article.     Simple The pointer concept is very confusing, difficult to understand (especially for beginners) and causes bugs in code. To make java simpler and less complex the java creators decided to remove the concept of pointers.   Secure Security is one of the biggest issue in programming world. Pointer provides

Read more
1 2 3