Java – get the current class name? January 9, 2022 by admin Try, This will work as long as you don’t use it in a static method.