wood burning stoves
The moose likes Java in General and the fly likes The 'Class' and 'Method' classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Java in General
Bookmark "The Watch "The New topic

The 'Class' and 'Method' classes

Chandra Kaye

Joined: Mar 04, 2003
Posts: 3
Hi all,
I dont know whether this has to go in the beginners/indermediate/advanced. I would like to know when and why anyone would need to use the above two classes?? Method class objects represents methods of an object. We can use the invoke() method of the Method class object to invoke the method represnted by the Method object on some other object. Since the same functions can be performed by just creating objects and calling their methods through the object_name.method() format, why do we really need these classes??
Thanks in advance.
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
Chandra KKKK,
Welcome to JavaRanch!
We ain't got many rules 'round these parts, but we do got one. Please change your display name to comply with The JavaRanch Naming Policy.
Thanks Pardner! Hope to see you 'round the Ranch!

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
Take a look at The Reflection Trail of Sun's Java Tutorial.
Have you checked out Aspose?
subject: The 'Class' and 'Method' classes
It's not a secret anymore!