• HOME
  • QUIZ
  • CONTACT US
EXAMIANS
  • COMPUTER
  • CURRENT AFFAIRS
  • ENGINEERING
    • Chemical Engineering
    • Civil Engineering
    • Computer Engineering
    • Electrical Engineering
    • Mechanical Engineering
  • ENGLISH GRAMMAR
  • GK
  • GUJARATI MCQ

JAVA Exceptions

JAVA Exceptions
In which of the following package Exception class exist?

java.file
java.net
java.lang
java.util
java.io

ANSWER DOWNLOAD EXAMIANS APP

JAVA Exceptions
Which exception is thrown when an array element is accessed beyond the array size?

ArrayIndexOutOfBounds
ArrayElementOutOfBounds
None of these
ArrayIndexOutOfBoundsException

ANSWER DOWNLOAD EXAMIANS APP

JAVA Exceptions
What will be the result if NullPointerException occurs at line 2?1. try{2. //some code goes here3. }4. catch(NullPointerException ne){5. System.out.print("1 ");6. }7. catch(RuntimeException re){8. System.out.print("2 ");9. }10. finally{11. System.out.print("3");12. }

1 3
1
1 2 3
3
2 3

ANSWER DOWNLOAD EXAMIANS APP

JAVA Exceptions
The class at the top of exception class hierarchy is .................

Exception
ArithmeticException
Throwable
Object

ANSWER DOWNLOAD EXAMIANS APP

JAVA Exceptions
What happen in case of multiple catch blocks?

The superclass exception cannot caught first.
Either super or subclass can be caught first.
The superclass exception must be caught first.
None of these

ANSWER DOWNLOAD EXAMIANS APP

JAVA Exceptions
Which of the following blocks execute compulsorily whether exception is caught or not.

throw
catch
finally
throws

ANSWER DOWNLOAD EXAMIANS APP
MORE MCQ ON JAVA Exceptions

DOWNLOAD APP

  • APPLE
    from app store
  • ANDROID
    from play store

SEARCH

LOGIN HERE


  • GOOGLE

FIND US

  • 1.70K
    FOLLOW US
  • EXAMIANSSTUDY FOR YOUR DREAMS.
  • SUPPORT :SUPPORT EMAIL ACCOUNT : examians@yahoo.com

OTHER WEBSITES

  • GUJARATI MCQ
  • ACCOUNTIANS

QUICK LINKS

  • HOME
  • QUIZ
  • PRIVACY POLICY
  • DISCLAIMER
  • TERMS & CONDITIONS
  • CONTACT US
↑