KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
How can one get the name of the class from a static method in that class. For example public class MyClass { public static String getClassName() { String name = ????; // what goes here so the string "MyClass" is returned return name; } } To put it in context, I actually want to return the class name as part of a message in an exception.
Tags (comma-separated)
Save Edits
Cancel