get class name having something in string code example Example: how get class name String className = this.getClass().getSimpleName();