Hello fellow programmers,
If a variable is defined not to be a public or private defined outside the method such as:
Graphics goff;
Image ii;
Thread thethread;
what would the variable be defined as?
The variables as defined without any explicit modifier would have an access level of package-private
. These variables can only be accessed within its own package. You can read more about access/variable scope levels for java here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With