Is it possible to conditionally import libraries in Java?

Is it possible to check if a library exists before importing into Java. For example, you have the code:

if (library.java exists) import library

+4
source share
1 answer

No, conditional import is not possible.

0
source

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


All Articles