Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Java reflection methods order (getDeclaredMethods)

807589Jul 17 2008 — edited Jul 17 2008
I'm looking for the order of methods returned by getDeclaredMethods using reflection.

I've looked http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Class.html#getDeclaredMethods() and in http://java.sun.com/j2se/1.5.0/docs/api/ and I read this:

"The elements in the array returned are not sorted and are not in any particular order."

Is this so? Even in the java 1.6? Does any particular order? How the array is filled?

Edited by: poroto20 on Jul 17, 2008 5:20 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 14 2008
Added on Jul 17 2008
5 comments
1,052 views