In the example given below we will learn how to get name of the particular class with package name. getName() method returns fully qualified name of the particular class in string format.
Here is the code:
import java.util.Calendar;
|
Output will be displayed as:

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.
Ask Questions? Discuss: Get Class Name
Post your Comment