• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Doubt in Exception

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This Question is from Whizlab

Which of the following exceptions are NOT thrown by JVM?
A. IllegalArgumentException
B. IllegalStateException
C. ArrayIndexOutOfBoundsException
D. StackOverflowError
E.NumberFormatException

Answer is A,B,E.

I think all of the given exceptions are thrown by JVM,I'm not able to understand the question,please help me.
Thank in advance
suja
 
Bartender
Posts: 6663
5
MyEclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The SCJP study guide has a page or two dedicated to explaining this concept. You can go through that to get a better picture.
 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Others are subclasses of RuntimeException that your program is expected to catch. Your program is catching becuase you did a mistake while programming and your program is throwing those exceptions.

StackOverFlowError is a subclass of java.lang.Error( refer API tree) .Represents system errors that your program is not expected to catch.So who will catch and throw that exception if there is any such errors,the JVM
 
Ranch Hand
Posts: 5575
Eclipse IDE Windows XP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The Exceptions A,B,E are checked exceptions. programmer expected to handle that type of Exceptions .

Hope This Helps
 
suja changanam
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks to all,i got it
suja
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic