• 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
The class at the top of exception class hierarchy is .................

ArithmeticException
Object
Throwable
Exception

ANSWER DOWNLOAD EXAMIANS APP

JAVA Exceptions
Which exception is thrown when divide by zero statement executes?

ArithmeticException
NumberFormatException
None of these
NullPointerException

ANSWER DOWNLOAD EXAMIANS APP

JAVA Exceptions
Which keyword is used to specify the exception thrown by method?

throw
finally
catch
throws

ANSWER DOWNLOAD EXAMIANS APP

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

None of these
ArrayIndexOutOfBoundsException
ArrayIndexOutOfBounds
ArrayElementOutOfBounds

ANSWER DOWNLOAD EXAMIANS APP

JAVA Exceptions
try{ File f = new File("a.txt");}catch(Exception e){}catch(IOException io){}Is this code create new file name a.txt ?

false
true
None of these
Compilation Error

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
2 3
1 2 3
3
1 3

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
↑