Monday 24 March 2014

Object class

Object is the super class for all the classes in Java. By Default all the classes extend the Object class. Object class is available from JDK1.1.

class Object{
  public final Object Class<?> getClass();
  public Object int hashCode();
  public boolean equals(Object obj);
  protected Object Object clone();
  public String toString();
  public final Object void notify();
  public final Object void notifyAll(); 
  public final Object void wait(long timeout);
  public final void wait(long timeout, int nanos);
  public final void wait();
  protected void finalize();
}


Prevoius                                                 Next                                                 Home

No comments:

Post a Comment