Why java does not support multiple inheritance ???

Hai friends ..iam new to java .. i have doubt ..plz help me
Why java does not support multiple inheritance ???

The reasons for omitting multiple inheritance from the Java language mostly stem from the "simple, object oriented, and familiar" goal.
To understand multiple inheritance, the learner needs some level of expertise like virtual derivations etc in c++. Multiple inheritance will allow method duplication, and throws the learner into confusion which method might be called by the compiler in which scenario at run time.
Even though this answer seems to be funny, this is the actual reason why java omitted multiple inheritance of classes.
But java support multiple inheritance of interfaces. Multiple interface inheritance allows an object to inherit many different method signatures with the caveat that the inheriting object must implement those inherited methods.

Similar Messages

  • How Java does not support multiple inheritance

    Hi,
    I have got a small doubt....
    Generally it is said thatjava does not support multipleinheritance.I agree.
    But then we know that every class in java by default is a sub class of Object class then how is it possible to inherit one more class using extends keyword.
    I am confused?
    Akshatha

    Generally it is said thatjava does not support
    multipleinheritance.I agree.Generaly, this is wrong. Java does support MI, just not MI of implementation. You can extend as many interfaces as you like.
    But then we know that every class in java by default
    is a sub class of Object class then how is it
    possible to inherit one more class using extends
    keyword.It is not possible. You can only extend directly from one single class. If you extend from something else than Object, you're not directly extending Object anymore.

  • Why java does not force to declare atleast one abstract method

    hi,
    i can define an abstract class without declaring any abstract method in that class. But why wud i do this ? i mean when i have decided that a particular class should be inherited by other subclass and subclass should porvide implementation then there should be atleast one method in the abstract super class which requires implementation.
    All i want to know is why java does not force to declare atleast one abstract method in abstract class.
    there may be some situations where this restriction can create problem if it is like that then can anybody give some example.
    manish

    hi,
    i didn't get u.
    u r trying to say that i have an abstract class with
    only static methods then my questions is why wud
    declare such a class as 'abstract' class? because a
    static method can't be abstract also. Even then if
    somebody want to define such a class with only static
    methods then compiler should force him to declare
    atleast one abstract method which can be implemented
    by subclass, because as i said before if sumbody
    decide to define a class abstract then he wants that
    it should be inhereted but as u r saying a class with
    only static methods then it should not be an abstract
    class it can be a simple class.there's no functional reason, really... actually, factory-like classes are often defined the way Ceci described
    "abstract" only ensures that nobody can ever get an instance of that class (as a matter of fact, what would be the point of getting an instance, if no instance method exists ?)

  • Does anyone know why Lion does not support the HP LaserJet CP1025nw and if there is a work around?

    Does anyone know why Lion does not support the HP LaserJet CP1025nw and if there is a work around while we wait for a dedicated driver? HP claims apple provides the drivers but I am not certain of this.

    See the following link for details from the hp.com site on using your model of printer with Lion along with a number of other FAQs :
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02915680&cc=uk&dlc=en&lc=en &os=219&product=4052972&sw_lang=
    Thanks
    AF

  • I am looking to turn my iPad into a portable device to store and view multiple files transferred from my pc. I have tried some apps but it does not support multiple sub folder transfers.  Any suggestions please?

    I am looking to turn my iPad into a portable device to store and view multiple files transferred from my pc. I have tried some apps but it does not support multiple sub folder transfers.  Any suggestions please?

    I use GoodReader on my iPad and use the GoodReaderUSB tool. the GoodReaderUSB tool allows you to transfer entire folders into GoodReader without loosing the folder/file structure.
    Windows: http://www.goodiware.com/usb/GoodReaderUSBWin_200.zip
    Mac: http://www.goodiware.com/usb/GoodReaderUSBMac_202.zip

  • Why Apple does not support from Iran? And why not open a store in Iran?

    Why Apple does not support from Iran? And why not open a store in Iran?

    You think this is an injustice?
    I think that injustice relates to rights that are not honored or respected, and I think we can agree that in no circumstance, human, civil, political or legal, is having or owning an Apple ID, or any other consumer item, a right.
    Why should this happen? ...Iraq ... Afghanistan....
    I believe that Apple, and most American companies, would love to have access to every market in the world, and Iran certainly (or at least, potentially) represents a larger market for Apple products than many countries in which they do business. So, given the choice, they'd be there.

  • Designer 6.0 does not support multiple homes

    I installed oracle 8i database version 8.1.6 on my windows NT 4.0 laptop. I need to also install designer 20000 version 6.0 on the same laptop but I get the following errors.
    The location e:\oracle \oracle8i is already used as an oracle home for oracle 816 production. It can not be uses as an oracle home for NT.
    I then designate a new directory and home name, and get the following errror.
    Designer release 6.0 does not support multple home installations and suggest me to change it back to my first choice.
    How do I get both the oracle database and designer installed on the same machine without Oracle home problem?
    null

    Hi,
    Install designer 6 first in DeFAULT_HOME, directory ORANT. After you've done that, install Oracle 816.
    See reply to Davephobbs
    HTH
    Martin

  • Let's Be Honest / Save Time: Lenovo T430s (NVIDIA) DOES NOT Support Multiple Monitors

    There have been a few comments / complaints / articles around the web regarding the T430s and difficulties using multiple monitors.
    But since this capabilitiy is clearly documented in all of Lenovo's specifications and marketing literature, I went ahead and bought an i7, NVIDIA, SSD, T430s with the docking station and all the bells and whistles to facilitate 3 or even 4 monitors.
    Well please listen and let's be clear:  IT DOES NOT WORK. Therefore, to be clear:
    DO NOT BUY THIS MACHINE AND DOCK IF YOU WANT IT TO LIVE UP TO ITS MULTI MONITOR PROMISE.
    In the two weeks since FedEx arrived, here is the deal:
    1) I fussed around with the dock and monitors at home and the office to no avail, for most of TWO weekends.  (I am not a beginner).
    2) Then, I spoke to Lenovo in Atlanta's tech support for THREE HOURS.  No results
    3) I spoke to Lenovo's "premium support" (paid) for FOUR HOURS.  No results.
    4) I consulted with a 3rd party expert on mulitple monitors who was kind enough to remote into my machine for another HOUR.  No results.
    5) Muliple parties have confirmed that yes, all hardware is working and yes, everything can be seen in device manager, and yes, the NVIDA card is properly switched on in the BIOS, yes I bought the i7 version etc.
    6) And just in case, yes, we wiped the drive clean for a factory reset, yes we unistalled and reinstalled all the drivers and yes, we even deleted the Lenovo driver just in case the NVIDIA driver was newer or better and yes, we double checked the settings in the BIOS again.
    7) Yes, we tried every connector in the dock AND the laptop:  VGA, DVI, DP and mini DP - in EVERY possible combination.
    And NO, IT STILL DOESN'T WORK. AT ALL.  Two screens, take your pick, but THAT'S IT.
    Finally, not one but TWO technicians asked me to not quote them (so I wont mention any names) but that in their opinion IT JUST DOESNT WORK AT ALL, EVER, despite Lenovo's claims / insistance that it is configured for 3 and even 4 monitors.
    So the final conclusion was only that Lenovo must have rushed this T430 spec / configuration / capability to market (including the glossy brochures!) before figuring out that something is missing in the handshake between the mother board and the NVIDIA card? 
    Or in the firmware re swithing between the Intel (internal) and NVIDA card? 
    Or something else which prevents the NVIDIA card from seeing the ports on the laptop or the dock?
    In summary 1) you get NOTHING from the NVIDIA upgrade and with respect to more than 2 monitors, IT JUST DOES NOT WORK, AT ALL, EVER, PERIOD and END OF STORY.
    I too am a die hard old school Thinkpad enthusiast and with the company's service could match their classic products.
    I have an X201 that I generall love, but would appreciate more speed, an SSD and I have to drive at least 3 external monitors, using at least 1920 x 1080 resolution.
    Perhaps a W series Thinkpad would work, but I also travel so going up to the T430s was already a sacrifice vs the small size of the X201.
    There are some 3rd party solutions but they are expensive and not so sure how plug and play they are with 3 or more monitors - what the T430s and Mini Dock 3.0 are SUPPOSED TO DO.  But they dont.
    Not giving up yet, but this has been a real bummer.
    PS
    Lenovo was very focused, efficient, and uncompromising when charging my CC for "premium" support.
    Solved!
    Go to Solution.

    Thors,
    Thank you and happy to report, albeit after all the hours and now weekend number 3:
    1) For the moment, I am able to repeat the 3 screen performance using mini DP from the Thinkpad and 2 DPs from the dock to the external monitors
    AND
    2) For the first time ever, I am just now for the first time running the 3rd external monitor from the VGA port on the dock.
    That is what I meant by using the various ports on the dock, so that the Thinkpad can simply be docked and undocked without connecting the mini DP - the purpose of a dock obviously.  As stated in other threads and articles, various configurations of the dock ports supposedly work to achieve 3 external screens, but until today was not able to do this.
    That is the good news and thank you for all help.
    The bad news is I stil have no clear idea why this has been so difficult, or where the problem lives that consumed so many hours of my own time and many hours with Lenovo tech support as stated above.
    Some success seems to have happened only after more than one set of LONG updates to Windows 7 (?)
    If I can replicate this set up the office (where I have 3 of the same monitors) I will be almost there.
    Thank you again to all for help and support.

  • Jms c api does NOT support multiple threads on solaris?

    It appears that weblogic jms c api (solaris) does not work with multiple threads.
              I wrote a simple test program with multiple threads in the following environment:
              <p>
              <pre>solaris 5.7 Generic_106541-22 sun4u sparc SUNW,Ultra-250,
              weblogic 8.1.3
              jdk 1.4.2_b04
              </pre>
              <b>ONLY the first thread is able to create jms queue senders and send text messages without any problem. The second thread always get the following exception:</b>
              <pre>weblogic.jms.common.JMSException
              at weblogic.jms.dispatcher.DispatcherWrapperState.dispatchSyncTran(DispatcherWrapperStat
              e.java:440)
              at weblogic.jms.client.JMSProducer.sendInternal(JMSProducer.java:382)
              at weblogic.jms.client.JMSProducer.send(JMSProducer.java:207)
              Caused by: java.lang.ExceptionInInitializerError
              at weblogic.j2ee.ApplicationManager.loadClass(ApplicationManager.java:309)
              at weblogic.j2ee.ApplicationManager.loadClass(ApplicationManager.java:258)
              at weblogic.j2ee.ApplicationManager.loadClass(ApplicationManager.java:253)
              at weblogic.rjvm.MsgAbbrevInputStream.resolveClass(MsgAbbrevInputStream.java:324)
              at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream
              .java:96)
              at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.java:117)
              at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:56)
              at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:159)
              at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:138)
              at weblogic.jms.dispatcher.DispatcherImpl_813_WLStub.dispatchSyncTranFuture(Unknown Sour
              ce)
              at weblogic.jms.dispatcher.DispatcherWrapperState.dispatchSyncTran(DispatcherWrapperStat
              e.java:406)
              ... 2 more
              Caused by: <b>java.lang.NullPointerException</b>
              at weblogic.i18ntools.L10nLookup.loadProps(L10nLookup.java:88)
              at weblogic.i18ntools.L10nLookup.<init>(L10nLookup.java:160)
              at weblogic.i18ntools.L10nLookup.init(L10nLookup.java:132)
              at weblogic.i18ntools.L10nLookup.getLocalizer(L10nLookup.java:315)
              at weblogic.management.commo.internal.CommoCommandLineTextFormatter.<init>(CommoCommandL
              ineTextFormatter.java:20)
              at weblogic.management.commo.Commo.<clinit>(Commo.java:89)
              ... 13 more</pre>

    It was caused by the 2nd threads' classloader.
              The 2nd thread uses the bootstrap classloader by default when attached to jvm, which loads the 'core' java classes only, not even extended classes.
              <p>
              This cause JNDI factory initialization failed.
              <p>
              The solution is to set the 2nd thread's context loader as the system class loader using JNI. See java.lang.Thread#setContextLoader and java.lang.ClassLoader#getSystemClassLoader.

  • X3-02 does not support multiple selected delete me...

    I have call Nokia Singapore on the issues that X3-02 does not include the feature for all or multiple selective delete message receive. Imagine spam message send to your mobile phone and you have to spend time to  delete one at a time. This waste user time and it should be a basic feature of a phone. i have a low end Samsung phone allow me to do this.
    Nokia, please put a updated software to allow user to do:-
     allow user to mark the spam soure 9 telephone number) and move message into the foder and allow the user to decide to delete it or not.
    Allow user to mak and do selective deleation.
    Currently, I am very unhappy of this phone as it does not has this important feature.
    Thanks
    Parry

    It take two steps to do this and it depends on the state of the phone. A simple mak and delete at last is availavle in many other phones.
    One of the main concern is about sms spam block or filter, this is a important feature. Further more, this phone vibration mode is no selectable. It either on or off fot both call and sms.
    Imagine a100 sms flooded will use a lot of battery and anoying.
    I am a very unhappy X3-02 owner. I will not recommend anyone to buy this phone until these functions are available. I am even consider to sell it away .

  • Official...BTCloud does not support multiple BT Ac...

    After a long running open fault, I got a call from BT 3rd Line Cloud support, (aka BT / F-Secure) via an intermediary (they wouldn't let me speak with them directly).
    I have been having a problem with not being able to login into BT Cloud with my BT ID (I have two BT accounts under my BT ID) and have been several times that they (BT and F-Secure) are working on a fix. Today I got a call from BT (thanks to StuartH, Mod on this forum, for escalating) to tell me that BT Cloud will not work with multiple BT Accounts, each with BT Cloud active, under one BT ID and, in order to get this working, I would have to create another BT ID and link each BT ID to one account.
    Apparently, they forgot to put this information into the BT Cloud FAQ/T&Cs but are in the process of putting this information in as we speak.
    So, just thought I would let others know what the official answer is from BT on this issue, as I am sure others are experiencing the same problem...

    This problem was pointed out to BT in August. The real issue is that the BT ID idea is flawed. A suggested solution was raised in April.
    http://community.bt.com/t5/Ideas-Bank/BT-Cloud-ability-to-change-Username-and-Password/idi-p/828136

  • I would like to ask why apple does not support Whatsapp for Ipad

    Dear All,
    As a relatively new apple user, i find it difficult to understand as to why apple doesnt support whatsapp for ipad. I am mostly on the go and carry my ipad for business purpose, and as you know, these days social networking is an intergral part of our lives, i find it perplexing as to why ipad doesnt support whatsapp. Almost all of my collegue's and friend are using this, it becomes increasingly diffcult to multitask between a phone and an ipad.
    Could Apple kindly make it available for users. It would be really convinient, especially for people in the age group 50+ who would like to be in touch with their families regularly.
    Regards
    Bala

    Whatsapp is meant for phones, authenticated via the voice carrier link. That's what the developer (nowadays Facebook, who bought the company) decided to do with their app. Hacking that design sounds dangerously against the TOU for discussion in these forums.
    You can always search in other message boards outside Apple's regulations for what you want. Regardless, you will need an iPhone to authenticate and activate you Whatsapp account.

  • Why FaceTime does not supported in my i-phone 5 I live in Saudi Arabia? How can I let it work?

    I Live in Saudi arabi, I have I-phone 5 & using last version of iOS. I can not find face time in setting. When I call the icon of face time appears but with question mark 
    ccan u tell me the solurion to let me use it?
    thanks

    Banned by your government, thus not available & no way to add it back to your phone.
    Complain to your King.

  • Is it really true that EA CC 2014 does NOT support multiple animations on a single page?

    My page has multiple animations that I have spent days designing, and now my developer is telling me we can only use one. 
    Is this seriously true?  A lack of detail on this issue will surely drive me to use another product like Hype or Google...
    http://www.adobe.com/devnet-docs/edgeanimate/api/current/index.html#multiplecompositions

    Hi,
    Please check this article, you can still use multiple composition on a single page, it is working on Edge CC214
    Nesting Animate compositions with the Composition Loader by Edge Commons | EdgeDocks.com
    I will check more on this with the concern team and let you know.
    Regards,
    Devendra

  • Does JTree support multiple DnD?

    I'm working on an applet which displays a JTree tree, which has to support multiple DnD.
    i mean, user has to be capable of selecting several nodes at a time and drag all of them, dropping them into a target.
    Though i have asked about it, and somebody told me about it, the solution was with a JFrame, and all the examples which work and i've read, arre with JFrame.
    So i guess that maybe JTree does not support multiple DnD, and moreover, there is a website
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4165577
    in which someone says that, in fact, JTree does not support it. But it's and old page, so i want to know if at present, Jtree still has this debug.
    Thanks in advance!

    http://www.java-forum.org/de/viewtopic.php?p=139820#139820

Maybe you are looking for

  • Photo Gallery crashes

    Hi everyone, I need some help getting my iPhone 4 fixed. Today I launched the Camera app using the new button hidden in the lock screen, released after iOS5, and everything was fine, until I took the picture. The Camera app crashed and now my Photo G

  • Layout issue in IE Windows

    hopehouseoc.com/index3.htm I can't get it to line up in Windows, but in all things Mac, it's okay. Can someone see the quick fix that I'm not seeing? thanks, -c

  • Whenever I plug my iPod in, it causes my computer to crash!

    Can anyway help me? I have an 80GB Classic Please!!!!!!!!!!!!!

  • Itunes account set up problem

    I am trying to sign into itunes. Every time I do this it says I need to update my account information. I do this and I still can't sign in. HELP

  • Safari quits unexpectantly and your system has run out of application memory

    I recently had the Apple Store rebuild my powerbook and they fixed my video and also replaced many other parts. Now my laptop seems fine except that I keep getting these two problems that only resolve if I force quit all my applications and restart t