How can I preserve order of private methods when compiling java classes? I use getDeclaredMethods() and it returns an incorrect order.
>Solution :
As Sotirios Delimanolis says in comments, you cannot ensure order. For more details, please see this question that has already been answered.