简体   繁体   English

如何知道我是在 Java 中使用外部库还是内部库?

[英]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.对于其他导入,如果它以javajavax开头,则很可能也是内部库。

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

相关问题 内部库与外部库Java - internal versus external libraries Java 在Java中使用外部库 - Using external libraries in Java 使用Java和任何外部库,如何将纬度/经度点绘制到地球的图形表示中? - Using Java and any external libraries, how can I draw latitude/longitude points onto a graphical representation of the Earth? 该方法如何知道我正在使用什么变量? [Java newb] - How does the method know what variable I'm using? [Java newb] 如何将外部库与原子包和Java脚本一起使用? - How can I use external libraries with the scripts atom package and java? 我如何在我的 Java 应用程序中使用外部库 - How can i use external libraries in my java application 如何在不使用外部库的情况下在 JAVA 中生成私钥 - How to generate private public key in JAVA using no external libraries Java如何在不使用外部库的情况下从毫秒获取月份 - Java How to get Month from milliseconds WITHOUT using external Libraries 我想使用 Java itext 在现有 PDF 中创建多个内部链接和外部链接 5. 我该怎么做? - I want to create a multiple internal link & external link in existing PDF using Java itext 5. How can i do that? 使用Eclipse导出带有外部库的Java Project - Export Java Project with external libraries using Eclipse
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM