Retrieve class name

Report a typo

Implement the method that returns the fully qualified class name of the object provided.

Hint: Use the getName() method, which returns the name of the class represented by this object as a String.

Write a program in Java 17
/**
Get name of the class for the object provided.
*/
class ClassGetter {

public String getObjectClassName(Object object) {
// Add implementation here
}

}
___

Create a free account to access the full topic