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. Regards Chandra
posted 12 years ago
Greetings Chandra, Welcome to JavaRanch, the absolute best site on the www for Java information. We don't have many rules around here but we do have one. Please change your display name to conform with the JavaRanch naming policy of a real first and last name.
I dont know whether this has to go in the beginners/indermediate/advanced.
It can be tough sometimes to decide, but we discourage multiple posts of the same topic. So in the future, please choose one forum and post there. Since you have this posted in the Begginers forum, I'm going to lock this one and refer repliers to The 'Class' and 'Method' classes .
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher