• 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
Exception generated in try block is caught in ........... block.

throws
catch
throw
finally

ANSWER DOWNLOAD EXAMIANS APP

JAVA Exceptions
Which keyword is used to explicitly throw an exception?

try
catch
throwing
throw

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 ?

None of these
true
Compilation Error
false

ANSWER DOWNLOAD EXAMIANS APP

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

NullPointerException
NumberFormatException
None of these
ArithmeticException

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

ANSWER DOWNLOAD EXAMIANS APP

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

ArithmeticException
Throwable
Exception
Object

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
↑