1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

java is completely oops language

Discussion in 'Java' started by skp819, Dec 30, 2008.

  1. skp819

    skp819 New Member

    Joined:
    Dec 8, 2008
    Messages:
    89
    Likes Received:
    3
    Trophy Points:
    0
    Can anybody tell me that java is completely oops language. If yes can you tell me the reason?
     
  2. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,012
    Likes Received:
    203
    Trophy Points:
    0
    Occupation:
    Senior Support Engineer
    Location:
    England
    Depends what you mean by "completely oops". If by that you mean that it doesn't support scalar values at all, in other words that absolutely everything must be an object, then no it isn't because as in C you can define, say, int x and x is not an object. However Java does support the object oriented paradigm in that you can define objects and the compiler will throw errors if you write code that breaks the OO rules, e.g. if a non-member function attempts to access a private atrtribute.
     

Share This Page