Why java is not 100% oops

Hi, All
recently this question was asked in the interview that why java is not 100 % object oriented.....
plz help me regarding this
thanx inn advance...
Ravi

Many, many reasons. One obvious reason being that Java uses primitives. int, char, double and the rest are not objects.

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.

  • 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 ?)

  • Can I ask why it is not 100% error free?

    Okay, since I am busy doing all sorts of projects that cover graphic design and video editing, there are four things I am worried about.
    One of them is that my preinstalled photoshop doesn't work.
    I ask why? It replied: "Unexpectedly Quit"
    I did report this to apple but no return came back.
    Now I recently view that Disk Utility repairs this kinds of situation.
    Now comes my second question.
    Is repairing permissions 100% safe?
    examples of log repair permission:
    Permissions differ on ./Applications/iTunes.app/Contents/Frameworks/InternetUtilities.bundle/Contents /MacOS/InternetUtilities, should be -rw-rw-r-- , they are -rwxrwxr-x
    Owner and group corrected on ./Applications/iTunes.app/Contents/Frameworks/InternetUtilities.bundle/Contents /MacOS/InternetUtilities
    Permissions corrected on ./Applications/iTunes.app/Contents/Frameworks/InternetUtilities.bundle/Contents /MacOS/InternetUtilities
    Permissions differ on ./Library/Application Support/Macromedia/Shockwave
    The last question is that having permissions corrected, repairing disks comes a worse problem:
    Volume Bit Map needs minor repair
    Checking volume information.
    Invalid volume free block count
    (It should be 1418895 instead of 1399439)
    Volume Header needs minor repair
    The volume Macintosh HD needs to be repaired.
    Error: The underlying task reported failure on exit
    1 HFS volume checked
    Volume needs repair
    The last question is not really that serious but it's about the Age of Empires III game. It required vram that my laptop could not support.The question is, can I buy VRAMs for my laptop so I could play this game?
    nothing follows...
    So anyone interested into helping me?
    Thanks a lot!!!

    Hi Ph,
    Your 3rd question is really the important one here. If repairing the disk in Disk Utility fails, there is corruption in the directory of the hard drive volume. You MAY be able to repair it with a 3rd party disk utility such as Alsoft's Disk Warrior or TechTool Pro. If not, you will need to reformat the hard drive, erasing and reinstalling the OS and any applications you have installed, along with any data you have on the computer.
    Errors sent to Apple after applications 'Unexpectedly quit' are not typically answered. They go to an engineering group for analysis.
    VRAM (Video RAM) on Apple portables is not upgradeable.
    Good luck.
    PM G5, PB G4 17", iMac G5 20", iPod 5G 30GB, iPod Nano 1G, iPod Shuffle 2G   Mac OS X (10.4.9)   AirPort Extreme (new) WDS with AirPort Express

  • Why java and not HTML....?

    Can neone please tell me Why we use Java Programming to develop sites .....instead of html which is easy to use. Is it just the matter of security...?

    That's like asking why use linoleum when we could use carpet instead.
    HTML is good for presentation of certain types of things. It also makes creating simple forms easy. But there are some types of UI's that, while you could likely create them with DHTML, they are very complex and probably a real pain to support. Nevermind that there are still browser inconsistencies to deal with.
    Java is a totally different tool. In fact Java can do a whole heck of a lot more than UI's. Java can even be used on the server to help generate HTML output.
    Java can work with HTML in various ways. Sometimes Java's the right tool, sometimes HTML is the right tool. Use the right tool.

  • Why Java is  following Unicode & not ASCII standard?

    Hi all,
    I am new to Java as well as to this forum.
    Could you please tell me why Java is not following ASCII format?
    And why is it following Unicode?
    Thanks,
    Reni

    Unicode is chosen because it's an abbreviation for Unique Ode, which means that it provides a special sort of poetry to give Java an aura of mystique, intelligence and worldliness that sets it apart from other languages.
    To support languages and characters other than English.Who doesn't read/speak English, really?! And why isn't there multiple language keywords for Java. Why can't I write code en Espa?ol?
    p?blico vac?o hagaAlgo(Secuencia s) {
       para(nent i = 0; i < s.longitud(); i++) {
          Sistema.fuera.impresi?nL?nea(i + " = " + s.car?cterEn(i));
    }(int abreviated for "n?mero entero")
    Message was edited by:
    bsampieri

  • Java Plugin not working with firefox 3.o.13  and linux.

    this is my ln -s to the plugin at /usr/lib/mozilla/plugins
    libjavaplugin_oji.so -> /usr/local/jdk1.6.0_16/jre/plugin/i386/ns7/libjavaplugin_oji.so
    Any ideas why java is not working?
    Here's the ln -s again:
    #pwd
    #/usr/lib/mozilla/plugins
    # ls -l
    lrwxrwxrwx 1 root root 63 Sep 28 20:41 libjavaplugin_oji.so -> /usr/local/jdk1.6.0_16/jre/plugin/i386/ns7/libjavaplugin_oji.so
    Here are my java stats:
    # java -version
    java version "1.6.0_16"
    Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
    Java HotSpot(TM) Client VM (build 14.2-b01, mixed mode, sharing)
    Firefox 3.0.13:
    Mozilla/5.0 (X11; U; Linux i686;
    Gentoo Linux:
    # uname -a
    Linux tma 2.6.30-gentoo-r5 #10 SMP Sun Sep 20 21:52:19 PDT 2009 i686 Pentium III (Coppermine) GenuineIntel GNU/Linux
    I installed java from a jdk*.sh file and set the class path in /etc/bash/bashrc (not that it matters.
    The appletviewer does work.

    solved: I knew you all knew I could figure this out.
    #cp -R /usr/lib/mozilla/plugin/ /usr/lib/firefox-mozilla/
    asuming this is true:
    tma plugins # pwd
    /usr/lib/mozilla/plugins
    tma plugins # ls -l
    total 4
    lrwxrwxrwx 1 root root 63 Sep 28 20:41 libjavaplugin_oji.so -> /usr/local/jdk1.6.0_16/jre/plugin/i386/ns7/libjavaplugin_oji.so
    tma plugins #

  • Why JMF is not part of JRE ?

    Why Sun does not include JMF into JRE distributions out-of-the-box ? Look at Adobe Flash - it's easy to install for any user in any OS, and video capture and video playback works everywhere. Why Java does not follow this way? Especially now when Consumer JRE and Java Kernel will be ready soon (and will be easily installed)!
    Thanks.

    Why Sun does not include JMF into JRE distributions out-of-the-box ? Look at Adobe Flash - it's easy to install for any user in any OS, and video capture and video playback works everywhere. Why Java does not follow this way? Especially now when Consumer JRE and Java Kernel will be ready soon (and will be easily installed)!
    Thanks.

  • Why java doesnot support MultipleInheritance

    Hi,
    What is the disadvantage when a derived class extends two base classes (ie)
    multiple inheritance. Where C++ uses it effectively. Is there any reason why java does not support that & uses interface for that???
    Pls. do provide the answer...
    Thanks,
    M.Ananthu

    What is the disadvantage when a derived class
    lass extends two base classes (ie)
    multiple inheritance. Where C++ uses iteffectively.
    Is there any reason why java does not support that&
    uses interface for that???No. It's a bug.I don't think I would call it a bug. It's a direct consequence of the original design, becuase of the inclusion of the Primordial class (java.lang.Object).
    Let's say you inheritted from Integer and String. Then you would be inheritting Object twice, once from Integer and once from String. Then, which one would you use to get the hash code? which one to get the toString? the clone?
    Whether or not it should be a feature of java has been in debate since java was created, but it certainly wasn't a bug. I believe it was deliberately not supported (although i acknowledge that I'm by no means the expert).
    - Adam

  • Why does Java Application not working with Macromedia Flash 5 or MX?

    Why does Java Application not working with Macromedia Flash 5 or MX?

    Who says they don't?
    Although I don't know much about those I'd think they should be able to talk to Java Aps using Sockets or request Servlets ...
    Spieler

  • Why is there a java enable function in the settings app if java ia not supported by ipad2?

    Why is there a java enable function in the settings app of the ipad2, ios5, when java is not supported by ios5 on the ipad2?  The adds say that java neo, I think that is what it is supposed to be called, was supposedly introduced into the ios5 format to deal with this?

    If you're looking in the settings for Safari, that's JavaScript, which despite the similarity in names is completely different from Java. Java is not, never has been, and all indications are never will be supported in iOS. I have no idea what "java neo" might be, but I've never seen Java mentioned in any way in any of Apple's iPad ads.
    Regards.

  • After Effects CC 2014 will not upgrade?  Gets to 100% and then says application failed.  Why does this not upgrade?

    After Effects CC 2014 will not upgrade?  Gets to 100% and then says application failed.  Why does this not upgrade?

    We can't know anything. You have not provided any useful details like system information or the install logs.
    Mylenium

  • Why java only can display GIF file not jpeg and BMP ??

    Did anyone know why java only can display GIF file not in jpeg and BMP ?? This is because the quality of GIS is not as good as Jpeg and BMP
    any code to load the display process ??
    thx guys !!!

    you can do jpegs but im not sure about bmps.
    The only thing ive noticed is that java cant support transparent jpegs, only transparent gifs
    Jim

  • Why sun leader do not think about  "Why Java Web Start not be used widely"

    {color:#ff0000}Why sun leader do not think about "Why Java Web Start not be used widely"
    {color}
    Java Web Start was instruduced in jdk1.2, it's about ten years ago,But it's still not widely used--WHY?
    it's not because the design, it's becasue the code--the garbage code-- even the last version not work in many user computers,
    just not work suddendly -- noboday know reason--- if you do not believe, please google internet, many people suffered and suffering from web start!
    It's incredible that a famous big company like sun can not resolve an deployment problen in ten years that some very small company can do good work in much more short time !!!
    That' sun-- always say and design good things, then publish trouble and pain to their users. I really do not know what the sun's engineers are doing in so
    many years! -- why they do not know deployment is so important than others -- if deployment work fine, then the wrong thing can be correct easy !
    Sun, please do an famous big company -- give happy to user rather than pain !!! Please give us -- your users an stable and fast java web start to save us.
    {color:#ff6600}(Note: I use java web start to depoly our application, then receive endless complains, not work, slow and so on. now, we has no way just to give it up--design ourself's deployment-- that's also done by many pained people---just google it){color}
    Here is an desing suggestion:
    Client-end should be simple and stable, should let the server-end do complex thing .(now sun do opposite thing, they make Client-end complex, but server simple) ---it's because that Client-end will take widely effect on user's computer. update a few server is much more easy then update a amount of clients!
    Edited by: Jethro-Soft on Jun 30, 2008 8:49 PM
    Edited by: Jethro-Soft on Jun 30, 2008 8:52 PM

    Please check:
    http://joust.kano.net/weblog/archive/2006/04/06/why-i-will-never-deploy-with-java-web-start-again/
    http://kylecordes.com/2006/04/08/auto-update-no-web-start/

  • Why Java not allowed Widening and auto-boxing in single expression?

    Hi All,
    I have a very small question in my mind, that I would like to put on this discussion board.
    Why Java not allowed Widening and auto-boxing in single expression?
    Like:
    short s = 10;
    Long l = s;I want to know if java allowed above expression then what problem may occur?
    I know it is not a intelligent question, However still I ask for discussion.
    Thanks advance for all viewer of this question.

    JoachimSauer wrote:
    jverd wrote:
    I didn't like it at first, but it turns out my initial complaints were pretty much unfounded. I find it quite useful. It takes a fair amount of clutter out of code. The only real problem with it is that if you're not careful, you can end up doing a lot of unnecessary bouncing back and forth between primitives and wrappers without knowing it, which could hurt performance.In my opinion the biggest problem is getting NPEs at code lines, that look completely harmless. That used to bother me too, but then, if I'm writing
    int i = getAnInteger();it's just a replacement for
    int i = getAnInteger().intValue();which would also have caused NPE.
    That is, if I'm using autoboxing properly, it's just shorthand for what I'd have been doing otherwise anyway. True, it's easy to not think about it, to forget to consider whether NPE is a possibility and what the proper approach is, but mostly, if I want int, I know it can't be null (or if it is, I should get NPE).
    And when it comes time to debug the NPE, it's no great mystery, once you know the rules.
    If you don't think of autoboxing at the right position, then you can spend hours after hours tracking down a trivial bug ... or so I've heard ;-)Even if you're not thinking about it when you write the code, when you see an "impossible" NPE during debugging, it should be an instant giveaway.

Maybe you are looking for

  • Newbie with problems opening RAW files.

    I am new to using RAW files.  I started by following the instructions to download and install the new RAW plug-in for my CS2 version of photoshop.  When I open CS2 and choose bridge, I can see the thumbnail of the NEF file, but when I right click to

  • Aperture doesn't generate xml file

    Aperture 3.5.1 is supposed to generate an ApertureDatabase.xml file to use images in third-party software. I have the Preference set to generate this file whenever Aperture closes, but my main Aperture library does not generate this file. I tried set

  • Intel 5100 stop working occasionally

    OS: happend both on Vista Home Basic and XP SP3 Machine: X200 Driver: happened both with Lenovo pre-install and Intel new driver happened both w/ or w/o Access Connection Wireless Router: ordinary router that I used for a few years. all other noteboo

  • Issue in Infoview Logon with AD Credentials

    Hi All, I have implemented AD Authentication in BOXI3.1 Environment. Kinit is working fine and Iam able to logon to Desktop Intelligence and Webi Rich Client without any issue. But iam facing issue when logging into Infoview. I can logon to Infoview

  • Setting up wi fi

    Problems setting up the Wi Fi on my new Time Capsule 802.11n