Why java Don't Support Multiple interitence
Answer Posted / srinu
Java Does not support Multiple inhertiance through class
because ambiguity between variables of different classes
and to rudece memory overloading.and another reason java
extended only one class at time
java support Multiple inhertiance through interfaces.because
java class implements any number of interface at time
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
Is array primitive data type in java?
What type of variable is gender?
How can we make a class singleton?
What is static block?
Can a static method be overridden in java?
What languages are pass by reference?
What is mean by exception?
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 off heap memory?
What is the string function?
What are unchecked exceptions in java?
What is difference between == equals () and compareto () method?
Does it matter in what order catch statements for filenotfoundexception and ioexception are written?
What are the advantages of functions?
what is the purpose of the wait(), notify(), and notifyall() methods? : Java thread