Java Exceptions

105 views · Published 5 February 2014 · 2:48 · Indexed 6 November 2026

Channel: Interview DOT · 2014 · Science & Technology

Watch on YouTube

Click here - https://www.youtube.com/channel/UCd0U_xlQxdZynq09knDszXA?sub_confirmation=1 to get notifications. Java Exceptions

Java Exceptions

A Job Portal
http://www.InterviewDot.com http://www.InterviewDot.com http://www.InterviewDot.com
One Click Dream Job - http://www.interviewdot.com/upload-resume/uploadresume.htm

Are you looking for a new Job ?
InterviewDot.com - A Job Portal
http://www.InterviewDot.com http://www.InterviewDot.com http://www.InterviewDot.com
One Click Dream Job - http://www.interviewdot.com/upload-resume/uploadresume.htm

Short  Java Interview Question And Answer ?

1.What is an Immutable Object ?

Object that can't be changed after instantiation.

2.Difference between checked and unchecked exceptions ?

Exceptions that are checked at compile-time are called checked exceptions, in Exception hierarchy all classes that extends Exception class except UncheckedException comes under checked exception.

The exceptions that are not checked at compile time are called unchecked exceptions, classes that extends RuntimeException comes under unchecked exceptions.ArrayIndexOutOfBoundsException, NullPointerException

3.Give an Example of checked and unchecked exception ?

ClassNotFoundException is checked exception whereas NoClassDefFoundError is a unchecked exception.

4.What is a Singleton Class ?

Using which only 1 object can be created.

5.Name few Java exceptions ?

IndexOutofBound , NoClassDefFound , OutOfMemory , IllegalArgument,illegalThreadStateException.

More from this channel