Get Class Name in Java
There are many times when we may need to know the class name of the object being used. Example :- If we are iterating a list of different objects and we need to know the class name of the objects. To know the class name we use objectName.getClass().getName() Let us look at an example code: … Read more