Java library size

If I have been given two Java libraries in Jar format, I do not have bells and whistles, while others have many of them that will mostly not be used ... my question is:

How does a large, mostly unused library affect application performance? Is the JVM a lazy class loading, does a large class library need more memory?

+3
source share
2 answers

The short answer is that classes are loaded whenever they are needed first. Note that "required" also means "refers to any other class that is loading."

, , - , .

, JVM, / java -verbose:class.

+7

:

?

. JVM spec, JVM .

. VM . (. A , " use" ). , ( ) .

+5

Source: https://habr.com/ru/post/1722333/


All Articles