Java Interview Question

Use this basic question and answer to prepare for your next Java interview.

When is memory allocated for static members?

All instantiation and memory allocation for static variables for all classes in the program is done before running the main method.

Looking for developers?

Want to learn more about Gigster? Enter your email and one of our project engineers will be in touch.