If you try to use them without initializing them, you will get a run-time exception.
如果您尝试使用它们而未首先对其进行初始化,则会获得运行时异常。
However, I have frequently wished for a workaround, some sort of simple "turn this exception into a run-time exception" command.
然而,我经常希望有一个变通方法,类似于“将该异常转换为运行时异常”这样简单的命令。
That contract does not allow this method to throw a run-time exception (barring violations of generic type safety that qualify as bugs in the calling code).
这个合约不允许该方法抛出运行时异常(防止因违反泛型类型安全而成为调用代码中的bug)。
应用推荐