青年中文青年中文

interruptedexception的意思

interruptedexception中文翻譯:

中斷異常

相似詞語短語

interrupted mating───中斷雜交

interrupted ivc───中斷下腔靜脈

interrupter───n.打斷者,阻礙者;[電]斷續器,斷流器

interrupted sleep───睡眠中斷

boyish girl interrupted───孩子氣的女孩打斷了他的話

interrupted kill───中斷殺戮

continually interrupted───不斷中斷

interrupted time series───中斷時間序列

interrupted speech───斷續語言

interrupted definition───中斷定義

雙語使用場景

When a blocking method detects interruption and throws InterruptedException, it clears the interrupted status.───當一個阻塞方法檢測到中斷并拋出InterruptedException時,它清除中斷狀態。

Since this application has not defined another thread to cause the interrupt, it doesn't bother to catch InterruptedException.───由于這個應用程序并沒有定義其他的線程,所以并不用關心如何處理該異常。

But then the compiler or IDE balks that you haven't dealt with the checked InterruptedException.───但是編譯器或IDE報錯說沒有處理檢查到的InterruptedException。

You can see this in Listing 3, where the accessResource method throws an InterruptedException while accessing the shared resource.───您可以從清單3的代碼看到這一點,其中accessResource方法在訪問共享資源時拋出了一個InterruptedException異常。

Sometimes throwing InterruptedException is not an option, such as when a task defined by Runnable calls an interruptible method.───有時候拋出InterruptedException并不合適,例如當由Runnable定義的任務調用一個可中斷的方法時,就是如此。

英語使用場景