Select from following answers:
a. True
b. False
c. No Idea
Ans)
True.
Static members are 'eagerly initialized' because it is initialized immediately when a class is loaded for the first time.
Example :-
static int NumberOfTyres = 20;
The above static variable will be initialized as soon as the class is loaded.
0 comments: