What is reflection and why is it useful?

How to get class name?

cannot convert from Class<capture#1-of ?> to Class<?>[]