本文介绍了自动导入哪些Java类/包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}
在上面的示例中,我们使用了 println
方法,而没有导入它的程序包.所以我想知道:自动包含哪些程序包或类?
In the above example we are using the println
method without importing the package of it. So I want to know: What are the packages or classes included automatically?
推荐答案
一切/lang/package-summary.html"rel =" noreferrer> java.lang
默认情况下已导入-在这里您使用的是 java.lang.System
和 java.lang.String
Everything in java.lang
is imported by default - here you are using java.lang.System
and java.lang.String
这篇关于自动导入哪些Java类/包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!