• Menu
  • Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

JavaBeat

Java Tutorial Blog

  • Java
    • Java 7
    • Java 8
    • Java EE
    • Servlets
  • Spring Framework
    • Spring Tutorials
    • Spring 4 Tutorials
    • Spring Boot
  • JSF Tutorials
  • Most Popular
    • Binary Search Tree Traversal
    • Spring Batch Tutorial
    • AngularJS + Spring MVC
    • Spring Data JPA Tutorial
    • Packaging and Deploying Node.js
  • About Us
    • Join Us (JBC)
  • Java
    • Java 7
    • Java 8
    • Java EE
    • Servlets
  • Spring Framework
    • Spring Tutorials
    • Spring 4 Tutorials
    • Spring Boot
  • JSF Tutorials
  • Most Popular
    • Binary Search Tree Traversal
    • Spring Batch Tutorial
    • AngularJS + Spring MVC
    • Spring Data JPA Tutorial
    • Packaging and Deploying Node.js
  • About Us
    • Join Us (JBC)

Runtime Exceptions in Java

January 20, 2014 //  by Krishna Srinivasan//  Leave a Comment

Runtime exceptions are need not be handled by the programs. Generally RuntimeExceptions are exceptions that can be prevented programmatically.E.g NullPointerException, ArrayIndexOutOfBoundException. If we check for null value before calling any method, NullPointerException would never occur. These kind of exceptions should never be handled because that is not good practice. Java has 49 Runtime exceptions defined in its API. These all the exceptions extend the super class java.lang.RuntimeException. The below list is all the RuntimeExceptions as of Java 7 release.

  • AnnotationTypeMismatchException
  • ArithmeticException
  • ArrayStoreException
  • BufferOverflowException
  • BufferUnderflowException
  • CannotRedoException
  • CannotUndoException
  • ClassCastException
  • CMMException
  • ConcurrentModificationException
  • DataBindingException
  • DOMException
  • EmptyStackException
  • EnumConstantNotPresentException
  • EventException
  • FileSystemAlreadyExistsException
  • FileSystemNotFoundException
  • IllegalArgumentException
  • IllegalMonitorStateException
  • IllegalPathStateException
  • IllegalStateException
  • IllformedLocaleException
  • ImagingOpException
  • IncompleteAnnotationException
  • IndexOutOfBoundsException
  • JMRuntimeException
  • LSException
  • MalformedParameterizedTypeException
  • MirroredTypesException
  • MissingResourceException
  • NegativeArraySizeException
  • NoSuchElementException
  • NoSuchMechanismException
  • NullPointerException
  • ProfileDataException
  • ProviderException
  • ProviderNotFoundException
  • RasterFormatException
  • RejectedExecutionException
  • SecurityException
  • SystemException
  • TypeConstraintException
  • TypeNotPresentException
  • UndeclaredThrowableException
  • UnknownEntityException
  • UnmodifiableSetException
  • UnsupportedOperationException,
  • WebServiceException
  • WrongMethodTypeException

Category: JavaTag: Java Basics

About Krishna Srinivasan

He is Founder and Chief Editor of JavaBeat. He has more than 8+ years of experience on developing Web applications. He writes about Spring, DOJO, JSF, Hibernate and many other emerging technologies in this blog.

Previous Post: « Difference Between Throw and Throws in Exception Handling
Next Post: ArrayList in Java »

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Follow Us

  • Facebook
  • Pinterest

FEATURED TUTORIALS

New Features in Spring Boot 1.4

Difference Between @RequestParam and @PathVariable in Spring MVC

What is new in Java 6.0 Collections API?

The Java 6.0 Compiler API

Introductiion to Jakarta Struts

What’s new in Struts 2.0? – Struts 2.0 Framework

JavaBeat

Copyright © by JavaBeat · All rights reserved
Privacy Policy | Contact