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.

Similar Messages

  • 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.

  • 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

  • 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

  • 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

  • How java support multiple inheritance by the use of interface.

    As per my understanding, Interface is just having the signatures of the methods not the implementation.
    So How java support multiple inheritance by the use of interface?
    Answer 1: we can institate interface reference by its implemented
    class.
              ����� interface inf...
              ����� class aa implements inf..
              ����� class bb implements inf....
               Now, inf i = new aa();
               inf i = new bb();
    Answer 2: We can extends as many interface as we want in the
    single
               interface.
               i.e. interface infFirst....
               interface infSecond....
               interface infThird....
               Now ,
               interface ingMulti extends infFrist, infThird...
    By above two answers its not prity clear as per the multiple inheritance in C or C++.
               i.e.
               class first{
               method abc();....}
               class second{
               method bbc()......}
               class multi::first::second{
               we can call to abc();.....as well as bbc();
    -Please give your important suggstion on the same.(Hope I explain it well.)
    -Jeff

    The keyword implement is used only for interfaces not
    for abstract class. If i am wrong correct me.I believe your right, but I will double check.
    As for the multiple inheritence think about the following code:
    class Animal {
        //  Animal generic stuff in this class
    interface Eat {
        //  Generic stuff that models eating behavior
    interface Runs {
        //  generic methods that model running behavior
    public class Horse extends Animal implements Eat, Runs {
        //  Stuff specific to a horse
    }The Animal class is generic but has stuff in it common to all animals.
    The Eat interface models behavior that is generic to eating, all living things have to eat something to survive. Herbavore are different from carnivores.
    The Runs interface models generic behavior to running, such as speed. A cheeta definately runs faster than a human.
    This brings us to the Horse class. It extends the Animal class because it "is-a" animal, and it implements the eat and runs interface because they are behaviors a horse has.
    I hope that helps.
    Extending an abstract class is the same as extending a regular class with the exception you MUST override all abstract methods in the abstract class. Thats not too difficult but I believe when designing classes, designing an abstract can be more diffecult than modeling the base class, and generic behaviors in interfaces. JMO.
    JJ

  • Version 3.6.14 has a bug & does not support Java to play Pogo games - How do I install a earlier version?

    Pogo games plays on Java - the last version of Firefox 3.16.14 has a bug that does not support Java - I have been instructed by Pogo to install an earlier version of Firefox. How do I do that?

    Firefox 3.6.15 was just released to fix that Bug.
    You can use Help > '''Check for Updates''' to trigger an update to Firefox 3.6.15.

  • Hi All , Will Java supports Multiple Inheritance  classes???

    Hi All ,
    Will Java supports Multiple Inheritance by classes???
    Thanks in advance,
    Prakash

    No, Multiple inheritance would look like
    public class A extends B,C {(You can do that in C++, but it's rarely a good idea).That's not true at all. It's not inherently harmful, in C++ or any other language. It's entirely possible to do it correctly when it truly makes sense.
    Java just guarantees that nothing bad can happen to you by only allowing multiple inheritance of interface. You can't ever have multiple inheritance of implementation, that's all.
    %

  • HT201250 Hello i am using TimeMachine to back-up entire Mac image (data + system) on an usb-local drive. I would like (on top of it) add a specific plan to back up some files on a remote network drive. Does TimeMachine support multiple back-up plans ? How

    Hello i am using TimeMachine to back-up entire Mac image (data + system) on an usb-local drive. I would like (on top of it) add a specific plan to back up some files on a remote network drive. Does TimeMachine support multiple back-up plans ? How ?

    Time Machine is capable of backing up to multiple locations, and can be used to back up to both a local hard drive and a networked drive (provided that that drive is in or connected to a Time Capsule or another Mac that is sharing it over the network). The catch, though, is that you can't specify different things to back up to different destinations. Whatever you exclude from Time Machine backups is excluded from ALL backups, and whatever is included is included on all.
    So, get a large enough drive that you can back up everything you want in all locations, or use something else for maintaining the network backup.
    More information on these topics can be found here:
    How do I set up Time Machine to a shared drive on another Mac?
    How do I set up Time Machine to a Time Capsule or Airport Extreme?
    "Rotating" Time Machine backup disks

  • How do you select and move more than one bookmark at a time? Shift+Click does not select multiple items that are next to one another in a list because the item

    How do you select and move more than one bookmark at a time?
    Shift+Click does not select multiple items that are next to one another in a list because the items open in firefox before this happens.

    Use the bookmarks library. You may use Shift +Click, and Ctrl + Click to create groupings of selected bookmarks to drag and drop.
    * one method of opening the bookmarks library is keyboard shortcut <br /> Ctrl+Shift+B (Windows)
    *see also [[How to use bookmarks to save and organize your favorite websites]]
    *and [[Use bookmark folders to organize your bookmarks]]

Maybe you are looking for

  • Partner Profile and its configuration.

    Hi all, I am creating an SD IDoc using EDI and send it between two servers. I need to know what is a partner profile and why should we create it. what are the steps to be followed in maintaining a partner profile and its configuration. Any pointers w

  • Problem in rebate agreement type 0005

    Hi I created a rebate agreement of type 0005 and maintained amount Rs 5000 for a customer while creating billing document the condition type BO06 was determined in the billing doc but without anu value the analysis shows that condition record has bee

  • Can't run on Windows XP ????????

    This seems a crazy limitation. There are still a huge number of XP users. I hope this gets sorted before release.

  • P6 Web services extract a Baseline spread

    Hi I believe I can extract Original Project Forecast from month PeriodType SpreadService >ReadProjectSpread operation> spreadfield >plannedtotalcost. Our P6 Users will create a snapshot baseline on a periodic basis, we need to extract this project ba

  • Is it possible to purchase replacement Flash Card that came with the Cisco 1811 Router?

    I am in desperate need of a replacement Flash card that came included with the Cisco 1811 Router. I purchased the router used and it was working perfectly. I worked my way through all the information provided at cisco.com and had it pretty much confi