how many methods are there in class runnable?
how many methods are there in class runnable?
Collapse
X
-
Tags: None
-
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.refle ct package)
Try starting with:
Code:java.lang.Runnable.class.getMethods()
Cheers!
Oralloy
Comment