Class multiple
{
Public static void main (String args [ ] )
{
int a, b ; int c[ ] = {3, 5, 6, 7} ;
try { a = 4 ;
b = 0 ;
a = a/b ;
System.Out.Println (a [10]) ;
}
Catch (ArithmeticException e)
{
System.err.println (“Error” + e . get Message []) ;
}
Catch (ArrayIndenOutofBandException e)
{
System.err.println (“Array out of Bound error”) ;
}
Home      |      About Us      |     Portfolio      |      Services      |      Courses      |     Career      |      Cost      |      Contact Us
Services
  SEO   
  Link Building
  Data Entry
  Web Design and development
  Web Application development
 

Graphic and multimedia

  E-Commerce Solutions
  Software development
  Web Marketing & Promoting
  Internet Marketing
  IT Outsourcing
  Multimedia/CD Presentation
  Synopsis Ideas
  Project Ideas
  Placement Papers
  Live Project Training
  Programming & Projects
  Faq
  Training @balujalabs
 
 
Method
 

To demonstrate the use of multiple catch.

 

 

 

 

 

 

 

 

 

                                                                                                                                          

1 To demonstrate the use of negative size Array exception
2 To demonstrate the use of arithmetic exception.
3 To demonstrate the use of multiple catch.
4 To demonstrate the use of Array index out Bounds Exception.
5 To demonstrate the use of string index out of bound exception.
6 To demonstrate the use of Null pointer Exception.