简体   繁体   English

内部库与外部库Java

[英]internal versus external libraries Java

What is the difference between internal and external libraries in Java? 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? java.util和/或java.io是内部库,外部库还是其他东西? 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." (因此,你和语言供应商都不“拥有”它。)你的项目引用它,并依赖于 (某个版本)它“没有它就不能生存”,但它不是“(只是)一个这个项目的一部分。“

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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