Is there any way to pass class as a parameter in Java and fire some methods from that class?
void main() { callClass(that.class) } void callClass(???? c
Have a look at the reflection tutorial and reflection API of Java:
https://community.oracle.com/docs/DOC-983192enter link description here
and
http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html