So, I can declare a class in Groovy as:
//groovy-code class Person { }
which is equivalent to writing in java, for example:
//java-code public class Person { }
Just out of curiosity .. that Groovy is equivalent to this encoded in java:
//java-code class Person { }
I mean, is there a way to achieve what I can achieve in Java by declaring something without an access modifier?
source share