You cannot declare a constant as static because it is static by definition.
Constant fields are accessed the same way as static fields. ClassName.myconstant
Static Read Only Constants
A static read-only field must be initialized in a static constructor.
© 2022 Better Solutions Limited. All Rights Reserved. © 2022 Better Solutions Limited TopPrevNext