Java अपवादएरर
EOFExceptionEOFException
फ़ाइल या स्ट्रीम का अंत अप्रत्याशित रूप से पहुँच जाता है।
jvm
विवरण देखें StringIndexOutOfBoundsExceptionएक string को ऐसे index से access किया गया जो उसकी valid range से बाहर है।
Index नकारात्मक है या string length के बराबर या उससे बड़ा है। यह charAt(), substring(), या इसी तरह के String methods में तब होता है जब index किसी valid character position से मेल नहीं खाता।
Characters access करने से पहले string length जाँचें। Empty strings को एक special case के रूप में संभालें। Index calculations में off-by-one errors ठीक करें।
EOFExceptionफ़ाइल या स्ट्रीम का अंत अप्रत्याशित रूप से पहुँच जाता है।
NoSuchElementExceptionकिसी empty collection या exhausted iterator से element retrieve करने का प्रयास।
InvalidClassExceptionएक serialized class का असंगत version या अमान्य format है।
FileNotFoundExceptionनिर्दिष्ट file path मौजूद नहीं है या खोला नहीं जा सकता।
PatternSyntaxExceptionएक regular expression में अमान्य सिंटैक्स है।
SSLHandshakeExceptionclient और server के बीच SSL/TLS handshake विफल हो गया।