Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок0
When static variable and non variable will be load or allocated in JVM
JVM struture is divided into three namely 1) class loader ( all the static variable & method are allocated). 2) byte code verifer. 3) execution engine ( all non static variable are allocated).
1 ответ
0
static variables are loaded when you first access their parent calss