Finding the name of a Class in Java from within a static methodOne of our regular visitors (Ranvijay) had asked it a couple of days back. Though, the code is pretty straightforward, I think it might help few others if posted as an article.One of the many possible ways of finding the name of the class in Java from within a static method is by using a static nested class, which will have a public