Why do static elds of a class have to be initialized when


Initializing Static Fields

Why do static ?elds of a class have to be initialized when the class is loaded? Why can't we initialize static ?elds when the program starts? Give an example of what goes wrong if, instead of static ?elds being initialized too early, they are initialized too late.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Why do static elds of a class have to be initialized when
Reference No:- TGS01269997

Expected delivery within 24 Hours