简体   繁体   中英

internal versus external libraries Java

What is the difference between internal and external libraries in Java?

For example,

   import java.util.*;
   import java.io.File;

Is java.util and/or java.io an internal library, external library, or something else? Thanks!

Conceptually, an internal library is either "a library that is provided as (effectively) "part of the language itself," or "a library that is known only to your (big) project." In one case, only the language-vendor has control of it. In the other, only you do.

An external library is something that comes from an outside source. (Hence, neither you nor the language-vendor "owns" it.) Your project references it, and depends on (a certain version of) it such that "it cannot live without it," but it is not "(just) a part of this project."

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM