what is static block
Static Block:
used for initializing statics members,
it belongs to the class and only one copy
and runs only once and before everything
I use it in configuration.reader class
in my framework
4.67
3
Static Block:
used for initializing statics members,
it belongs to the class and only one copy
and runs only once and before everything
I use it in configuration.reader class
in my framework
Thank you!
3
0
4.11
9
Static block is used to initialize the static data member.
It is executed before the main method,
at the time of classloading.
Thank you!
9
0
Are there any code examples left?
New code examples in category Other