In C# we have Type.FullName and Type.Name for getting the name of a type (class in this case) with or without the namespace (package in java-world)
Type.FullName
Type.Name
The following function will work in JDK version 1.5 and above.
public String getSimpleName()