11:37 pm - Monday March 18, 2019

Object class in java with Example Program

Corporate Training for Experienced Candidate
Struts | Hibernate | Spring | Java / J2EE
SOAP | RestFull | Design Pattern | more...
Ph: +91 72000 69003
137b, 2nd st, shanthi nagar, Chrompet, Chennai -600044

Object class in java:

  • An object is a base class for all java code return in java
  • Object is the only class which doesn’t have super keyword
  • Object class consists on 11 methods, 1 static block, and constructor.


List of methods available in Object class:

  • clone()
  • equals(Object obj)
  • finalize()
  • getClass()
  • hashCode()
  • notify()
  • notifyAll()
  • toString()
  • wait()
  • wait(long timeout)
  • wait(long timeout, int nanos)

Object class consist of a default constructor

Object class constructor is the only constructor which does’t use super keyword.
(More on constructor)

Object class consist of a static block


(More on static block)
Filed in: Z-A All Java Codes

No comments yet.

Leave a Reply