When static variable and non variable will be load or allocated in JVM | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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).

9th Jan 2017, 4:21 PM
Annapoorani.H
Annapoorani.H - avatar
1 Answer
0
static variables are loaded when you first access their parent calss
10th Jan 2017, 1:35 PM
Farzin Hooshmand
Farzin Hooshmand - avatar