java - Purpose of Object class in Android Application -


I'm working on Android development. I stumbled on the object class. I read teaching and do not say much about the purpose of the class. I think it comes in a work when there are multiple threads in one application. Can Any Other Spot Be It Beneficial? Can someone give me some ideas to use it and what are the benefits of using it?

comes from object class java.lang.Object . Object is a superclass of all objects in Java.

The most common method of object class is that we use equals ()

example:

  string s1 = "hello"; String s2 = "hello"; If (s1.equals (s2) {}   

is a simple one above the example .. We wait for (), notify () Thread is used during, and it works well in Android, although we have unbounded work that allows us to get painless threading. Final form () It is not collected by the garbage that collects the object.

Comments