P
P
Petrolti2018-04-16 09:10:39
Java
Petrolti, 2018-04-16 09:10:39

How does importing libraries from a package affect the performance and byte size of Java code?

And I have a question - how will the size of the bytes of the java code, after compilation, affect the import of only the necessary functions or all classes from the package (. *)? How does importing classes affect performance? I often notice that when I write a function myself, it doesn't run much faster than with a "ready-made" import. Have you noticed this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
MaxLich, 2018-04-16
@Petrolti

Doesn't affect at all. This is just an indication to the compiler and JVM where to get the necessary classes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question