[英]How to know if I'm using external or internal libraries in Java?
So, I have to write this code and it must use only internal Java libraries.因此,我必须编写此代码并且它必须仅使用内部 Java 库。
I have to read the HTML content of a URL page and I have managed to do so, but I'm not sure if I have only used internal libraries because I'm not so familiar with Java, can some explain to me please?我必须阅读 URL 页面的 HTML 内容并且我已经设法这样做了,但是我不确定我是否只使用了内部库,因为我对 Java 不太熟悉,可以向我解释一下吗?
I read that if it starts with "Java" it means that is a internal library, but Im not sure.我读到如果它以“Java”开头,则表示这是一个内部库,但我不确定。
Below there is a image of what I have used.下面是我使用过的图像。 Thank you.
谢谢你。
First pic: used in the main class Second pic: used in the reader class第一张图:在主类中使用第二张图:在阅读器类中使用
If you are not pulling any external dependancies, as external jar's, maven or gradle dependancies, just using what ever JDK provides, then you are using internal Java libraries.如果您没有提取任何外部依赖项,如外部 jar、maven 或 gradle 依赖项,仅使用 JDK 提供的任何内容,那么您正在使用内部 Java 库。
In both of your images imports are from JDK (internal Java libraries).在您的两个图像中,导入都来自 JDK(内部 Java 库)。
For other import if it starts with java
or javax
most likely it is internal library as well.对于其他导入,如果它以
java
或javax
开头,则很可能也是内部库。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.