why java does not support multiple inheritance
Answer Posted / dewanshu
Java support method overriding means both superclass and
subclass can have the same method name and number of
arguments.If java support multiple inheritance, ambiguity
problem will arise if two or more superclass have the same
method name, and the super keyword will not be able to
decide which superclass to call.
TO remove such ambiguity problem java doen not support
multiple inheritance through extend but it support it
through interface.
| Is This Answer Correct ? | 4 Yes | 4 No |
Post New Answer View All Answers
how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? : Java thread
What are predefined functions?
How do you escape in java?
What is the properties class in java programming?
What are multiple inheritances?
Explain about main() method in java ?
Why wait(),notify(),notifyAll() methods defined in Object class althought we are using in only threads.
Which non-unicode letter characters may be used as the first character of an identifier?
2) Suppose there are 5 directories having lot of files (say txt files) in each directory. 2 things :- 2.1) You want to search for filenames which have a particular pattern. 2.2) Out of these filtered files you want to search for a particular keyword or a search string. How can you achieve this?
What is append in java?
What are the methods used to implement for the key object in the hash map?
How many days will it take to learn java?
Why parsing is done?
Why hashmap is used in java?
What about interthread communication and how it takes place in java?