1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Why java is called a truly object oriented language

Discussion in 'JavaScript' started by bhupendradwi, Aug 31, 2011.

  1. #1
    I am confused what is object oriented language and Why java is called a truly object oriented language
     
    bhupendradwi, Aug 31, 2011 IP
  2. iBank ™

    iBank ™ Peon

    Messages:
    63
    Likes Received:
    4
    Best Answers:
    1
    Trophy Points:
    0
    #2
    iBank ™, Aug 31, 2011 IP
  3. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #3
    1) Javascript is an interpreted language used in writing web pages. Java is a compiled language used for creating applications. About the only thing they have in common is 4 letters in the names.

    2) An OO language uses objects, methods, etc. A procedural language uses variables that aren't objects, functions, etc. (If you want to get further into that - what is an object, what isn't, etc. - you need to study computer science. It's not something you can learn from a forum post.)

    3) Java is called an object oriented language because it is an object oriented language.
     
    Rukbat, Aug 31, 2011 IP
  4. hotnoob

    hotnoob Member

    Messages:
    96
    Likes Received:
    2
    Best Answers:
    1
    Trophy Points:
    28
    #4
    java is object oriented because of it's package setup.
    and Javascript by default is NOT object oriented, but it can be.

    Object orientation is basically where you use objects to store functions, variables, and whatnot.
    the most common way to do this, is via classes.

    And Non-Object oriented programming is where you run something line by line... such as...
    alert('wtf');
    alert('hello?');

    With OOP it creates an object, which basically means... it loads up all of the functions and variables first, so you don't have to worry about what order you put it in, and then it does all of that line by line junk.

    it's somewhat hard to explain :(
     
    hotnoob, Aug 31, 2011 IP