• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

about object class

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can any explain what is role and importance of object class?
 
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
yes. it is very important to know about class Object. for the firsst important thing to note about Object class is that all the classes in java are inherited from the class Object. even the program which you code will also automatically extend Object class. this implicitly mean that all classes in java API will extent Object class implicitly. so any program can override the methods which are present in the Object class.

eg: toString(), hashcode(), finalize(), equals() etc..
 
sigamala viswanath
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Vignesh for sharing the information,
But if i am not using that methods of object class in my program then what is the use of the object class for my project.

Most important , i want to know what is the key of the object class.
why it is making implict in program.

Please answer for my questions
 
author
Posts: 23951
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by sigamala viswanath:
Thanks Vignesh for sharing the information,
But if i am not using that methods of object class in my program then what is the use of the object class for my project.



If you have no need to use the methods of the Object class, or depending on anything that uses the object class, like Threads, collections, Wrappers (conversion to strings), etc., then you probably don't need to be concerned about the object class.

Henry
 
Sheriff
Posts: 11343
Mac Safari Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
See The singly rooted hierarchy section from Thinking in Java.
reply
    Bookmark Topic Watch Topic
  • New Topic