Results 1 to 4 of 4
  1. #1
    javanb is offline Member
    Join Date
    Dec 2010
    Posts
    10
    Rep Power
    0

    Question What is the class Object?

    Just created my first Hello.java program as part of the tutorial and I noticed that in the "Hierarchy" view in Eclipse the class "Hello" is derived from a class named "Object".

    What is this class and what does it provide?

  2. #2
    tashimoto is offline Member
    Join Date
    Sep 2010
    Location
    Oregon, usa
    Posts
    69
    Rep Power
    0

    Default

    Search engines are your friend! :)

    Object (Java Platform SE 6)

    You can do a quick search of any java "object" and view its hierarchy: for example searching "java String" will give you this link: String (Java Platform SE 6)

    Hope this helps! :)
    Chris

  3. #3
    javanb is offline Member
    Join Date
    Dec 2010
    Posts
    10
    Rep Power
    0

    Thumbs up

    Quote Originally Posted by tashimoto View Post
    Hope this helps! :)
    You bet it helps. Thank you very much, Chris.

    Quote Originally Posted by tashimoto View Post
    Search engines are your friend!
    I know. I found this forum through Google. :)


    Quote Originally Posted by tashimoto View Post
    So I now understand that every class has Object as a base class. This is great but I noticed that Object has several wait() methods, which means every class have these methods?

    If so, why would a String class need a wait() method?

    If this is part of an entire concept or design philosophy in which even a basic type needs to control program/thread execution, where do I learn more about this?

  4. #4
    tashimoto is offline Member
    Join Date
    Sep 2010
    Location
    Oregon, usa
    Posts
    69
    Rep Power
    0

    Default

    If you're still looking for answers about the Object Class, a book that has been mentioned on here (I can't remember who posted it) is an O'Reilly book called Head First Java. It starts to explain about the Object class in chapter 8 Interfaces and Polymorphism.

    :)

Similar Threads

  1. Replies: 2
    Last Post: 06-22-2010, 05:29 AM
  2. how to get object from another class
    By robertbob in forum New To Java
    Replies: 3
    Last Post: 05-24-2010, 01:21 AM
  3. Replies: 3
    Last Post: 03-15-2010, 09:44 PM
  4. Getting name of object class
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 11-05-2007, 06:22 PM
  5. Creating object of Type Object class
    By venkatv in forum New To Java
    Replies: 3
    Last Post: 07-17-2007, 04:33 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •