For example
class myClass {
public static final Set<String> s2 = Set.of("val1", "val2".........);
}
Once the class is loaded, where does jvm store these static sets in memory? Does it go through eden -> survivor -> tenured? Or straight to tenured?
Will jvm ever deallocate the static object once its allocated?