Results 1 to 14 of 14

Thread: Why JAVA is NOT

  1. #1
    Junior Member
    Join Date
    Mar 2007
    Answers
    1

    Post Why JAVA is NOT

    Why JAVA is NOT an 100% object oriented programming language?


  2. #2
    Junior Member
    Join Date
    Mar 2007
    Answers
    5

    Re: Why JAVA is NOT

    its is 100% object oriented programming no doubt abt it.....


  3. #3
    Contributing Member
    Join Date
    Feb 2007
    Answers
    47

    Re: Why JAVA is NOT

    Many languages claim to be object-oriented. While the exact definition of the term is highly variable depending upon who you ask, there are several qualities that most will agree an object-oriented language should have:

    1.encapsulation/information hiding
    2.inheritance
    3.polymorphism/dynamic binding
    4.all pre-defined types are objects
    5. all operations performed by sending messages to objects
    6.all user-defined types are objects

    A language is considered to be a "pure" object-oriented languages if it satisfies all of these qualities. A "hybrid" language may support some of these qualities, but not all. In particular, many languages support the first three qualities, but not the final three.

    Eiffel, smalltalk, and ruby are all pure object-oriented languages, supporting all six qualities listed above. Java claims to be a pure object-oriented language, but by its inclusion of "basic" types that are not objects, it fails to meet our fourth quality. It fails also to meet quality five by implementing basic arithmetic as built-in operators, rather than messages to objects.

    So,java is not 100% object oriented language,according to me.

    ----------------
    Neelima

    Last edited by neelim; 04-02-2007 at 05:40 AM. Reason: Aligning

  4. #4
    Junior Member
    Join Date
    Mar 2007
    Answers
    3

    Re: Why JAVA is NOT

    Java is not a pure object oriented language, coz u can still access static variables using class name instead of any reference to any objects


  5. #5

    Re: Why JAVA is NOT

    Is there any programming language that is 100% OO?What is the advantage if primitives derive from object?


  6. #6

    Re: Why JAVA is NOT

    Java is 100% OOP. if any doubt refer books


  7. #7
    Junior Member
    Join Date
    Sep 2008
    Answers
    2

    Re: Why JAVA is NOT

    none can justify whether its a 100%oo or not


  8. #8
    Junior Member
    Join Date
    Sep 2008
    Answers
    2

    Re: Why JAVA is NOT

    Java is not purely object oriented because, to be a pure object oriented language:
    - the only way to access any data must be through the objects.
    - Every data must be available in form of objects
    In Java, you can have static variables, primitive data types etc. which evidently don't fulfill above conditions.

    Regards,
    Anand
    j2eeconcepts dot com


  9. #9
    Junior Member
    Join Date
    Nov 2008
    Answers
    1

    Angry Re: Why JAVA is NOT

    Hi friends,

    Java is 200% purely object oriented , bcoz .....


    " Without a class we cannot create a programme in java"...


    I hope it will reflect......


  10. #10
    Junior Member
    Join Date
    Nov 2008
    Answers
    2

    Re: Why JAVA is NOT

    You still have basic types like char and int in Java... so no... It is not 100% OO

    Check Eiffel and you will see a true 100% OO language


  11. #11

    Re: Why JAVA is NOT

    Hi friend,
    JAVA is 100% purly obeject oriented programming language
    because of it doesn't work without an object.java works with real time objects.
    example an human being is an object.
    car is also an object of type vehicle.


  12. #12
    Junior Member
    Join Date
    Nov 2008
    Answers
    2

    Re: Why JAVA is NOT

    Hi friends
    I guess that It's all about semantics

    But you can in theory make a java program without creating objects, It is true that you have to declare a class to use public static void main() in, but main is static and that means that is inserted directly to a fixed memory address, and since the class is never instantiased, it never gets to be an Object.

    This way you can have a fully implemented program just by using int, char, etc. without ever using Object capability, so you might say that Java is Object Oriented, but from my point of view, 100% is too much for Java.

    In the case of Eiffel there isn't a single primary type, every single one of Eiffel types are Classes and there's no way you can work a program out without creating an instance of a class and there for creating an Object...

    This is my point of view, and as valid as any-one's who cares to make their point.

    For my interpretation of these theories, a Class is a Class and an Object only exists after creating a memory instance of a Class, before that is no more then code.

    If you'd still like to call Java 100% OO, then I guess that Eiffel would have to be 110% OO or, Strictly Object Oriented.

    So in the end... it's all semantics

    Hope I haven't offended anyone, as it was not my intention, but I think it's Important not to place Java and Eiffel at the same level


  13. #13
    Junior Member
    Join Date
    Jul 2009
    Answers
    3

    Re: Why JAVA is NOT

    Java uses primitive data types and static variables and static methods hence is not a pure object oriented language.


  14. #14
    Junior Member
    Join Date
    Sep 2009
    Answers
    1

    Re: Why JAVA is NOT

    Object oriented paradigm says, everything is an object.

    But the presence of primitive datatypes makes Java , non object oriented language.

    Still , JAVA is made object oriented language these days with WRAPPER classes.
    Instead of
    int i=0;
    Integer i = new Integer(0);
    makes it OOP language.
    (From jdk1.5 ver. autoboxing feature supports thius feature.)

    JAVA is 100$ object oriented language.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact