পৃষ্ঠাসমূহ

Search Your Article

CS

 

Welcome to GoogleDG – your one-stop destination for free learning resources, guides, and digital tools.

At GoogleDG, we believe that knowledge should be accessible to everyone. Our mission is to provide readers with valuable ebooks, tutorials, and tech-related content that makes learning easier, faster, and more enjoyable.

What We Offer:

  • 📘 Free & Helpful Ebooks – covering education, technology, self-development, and more.

  • 💻 Step-by-Step Tutorials – practical guides on digital tools, apps, and software.

  • 🌐 Tech Updates & Tips – simplified information to keep you informed in the fast-changing digital world.

  • 🎯 Learning Support – resources designed to support students, professionals, and lifelong learners.

    Latest world News 

     

Our Vision

To create a digital knowledge hub where anyone, from beginners to advanced learners, can find trustworthy resources and grow their skills.

Why Choose Us?

✔ Simple explanations of complex topics
✔ 100% free access to resources
✔ Regularly updated content
✔ A community that values knowledge sharing

We are continuously working to expand our content library and provide readers with the most useful and relevant digital learning materials.

📩 If you’d like to connect, share feedback, or suggest topics, feel free to reach us through the Contact page.

Pageviews

Thursday, January 19, 2017

Java.lang.Object Class

Introduction

The java.lang.Object class is the root of the class hierarchy. Every class has Object as a superclass. All objects, including arrays, implement the methods of this class.

Class declaration

Following is the declaration for java.lang.Object class:
public class Object

Class constructors

S.N. Constructor & Description
1 Object()
This is the Single Constructor.

Class methods

S.N. Method & Description
1 protected Object clone()
This method creates and returns a copy of this object.
2 boolean equals(Object obj)
This method indicates whether some other object is "equal to" this one.
3 protected void finalize()
This method is called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
4 Class<?> getClass()
This method returns the runtime class of this Object.
5 int hashCode()
This method returns a hash code value for the object.
6 void notify()
This method wakes up a single thread that is waiting on this object's monitor.
7 void notifyAll()
This method wakes up all threads that are waiting on this object's monitor.
8 String toString()
This method returns a string representation of the object.
9 void wait()
This method causes the current thread to wait until another thread invokes the notify() method or the notifyAll() method for this object.
10 void wait(long timeout)
This method causes the current thread to wait until either another thread invokes the notify() method or the notifyAll() method for this object, or a specified amount of time has elapsed.
11 void wait(long timeout, int nanos)
This method causes the current thread to wait until another thread invokes the notify() method or the notifyAll() method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.

No comments:

Post a Comment