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:
Output will be displayed as:
We have 1000s of tutorials on our website. Search Tutorials tutorials on our website.
Posted on: October 23, 2008 If you enjoyed this post then why not add us on Google+? Add us to your Circles