Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我尝试在没有完全限定名称且不导入的情况下使用 IOException,则会出现编译错误。但是当我对 RuntimeException 或 Exception 做同样的事情时,它就不会发生。这是为什么?
谢谢
java.lang.不需要导入包中的类。不仅仅是 RuntimeException,还有 Object 和 String 之类的东西。
java.lang.