This blog is primarily focus on Java fundamentals and the libraries built on top of Java programming language. Most of the post are example oriented, hope you have fun in reading my blog....:)
Wednesday, 30 January 2019
Groovy: Get the package name of a class
'package' keyword is used to get the package name of a
class.
Example
String.'package'.name
Above statement returns the package name of String class.
No comments:
Post a Comment