In java first edition there is no multiple inheritance,but later editions they provided indirect multiple inheritance by interfaces and extends.:Java does not support multiple inheritance because it leads to confusion to the programmer. It is prove in the following ex.:I think example given above for Passing address of object is incorrect. and every object is passed by reference in java
Category:Java Interview Questions
No comments:
Post a Comment