Results 1 to 4 of 4
- 07-17-2007, 02:37 PM #1
Member
- Join Date
- Jul 2007
- Posts
- 4
- Rep Power
- 0
- 07-17-2007, 02:54 PM #2
Member
- Join Date
- Jul 2007
- Posts
- 33
- Rep Power
- 0
The standard class Object is a superclass of all other classes.
-A variable of type Object can hold a reference to any object, whether it is an instance of a class or an array.
-All class and array types inherit the methods of class Object.
-The methods of Object are as follows:
o The method getClass returns the Class object that represents the class of the object. A Class object exists for each reference type. It can be used, for example, to discover the fully qualified name of a class, its members, its immediate superclass, and any interfaces that it implements.
o The method toString returns a String representation of the object.
o The methods equals and hashCode are declared for the benefit of hashtables such as java.util.Hashtable. The method equals defines a notion of object equality, which is bosed on value, not reference, comparison.
o The method clone is used to make a duplicate of an object.
o The methods wait, notify and notifyAll are used in concurrent programming using threads.
o The method finalize is run just before an object is destroyed.
- 07-17-2007, 03:00 PM #3
Member
- Join Date
- Jul 2007
- Posts
- 4
- Rep Power
- 0
Thx for ur view
My question is with the obj reference what is the use?
- 07-17-2007, 03:33 PM #4
Member
- Join Date
- Jul 2007
- Posts
- 33
- Rep Power
- 0
Similar Threads
-
Creating a Comparable object
By Java Tip in forum java.langReplies: 0Last Post: 04-15-2008, 07:38 PM -
List views, a type of object
By Leprechaun in forum New To JavaReplies: 2Last Post: 02-06-2008, 03:07 AM -
Need help with creating array of type object
By riz618 in forum New To JavaReplies: 3Last Post: 01-29-2008, 06:14 AM -
Getting object type
By gapper in forum New To JavaReplies: 1Last Post: 01-20-2008, 08:49 AM -
How to cast an Object into a specific type (Integer/String) at runtime
By mailtogagan@gmail.com in forum Advanced JavaReplies: 2Last Post: 12-03-2007, 01:04 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks