what is static initialization in java
Answers
Answered by
2
Hii
The static initializer is a static {} block of code inside java class, and run only one time before the constructor or main method is called. OK! Tell me more... is a block of code static { ... } inside any java class. and executed by virtual machine when class is called.
may be this answer was helpful for u
The static initializer is a static {} block of code inside java class, and run only one time before the constructor or main method is called. OK! Tell me more... is a block of code static { ... } inside any java class. and executed by virtual machine when class is called.
may be this answer was helpful for u
Danisgreat:
why are you copying from google?
Answered by
3
Static initialization means initialization at the time of declaring a variable. It means direct assignment of a variable with defined constant.
For instance :
a=2;
b=1;
# A student of class 10.
For instance :
a=2;
b=1;
# A student of class 10.
Similar questions
Accountancy,
8 months ago
Science,
8 months ago
Math,
8 months ago
Math,
1 year ago
Social Sciences,
1 year ago
Hindi,
1 year ago
Physics,
1 year ago