Tanmay Kadam,
What do you mean?
You can go to the JavaDoc and count class-specific methods.
You can recursively walk the class tree and get all inherited methods.
Neither method gives you the hidden, compiler-generated methods, though.
Likely the easiest method for you to count the methods is to use the reflection facilities. (see the java.lang.reflect package)
Try starting with:
- java.lang.Runnable.class.getMethods()
Cheers!
Oralloy