different between exception and error? explaim check and
uncheck exception
Answers were Sorted based on User's Feedback
Answer / malligontla
Exception is caused due to programmer mistake where as error
is because of the jvm failure. Checked exception user should
handle the exception to ensure the smooth flow of the
program without any break IOException, unchecked exception
is the user might or might not handle the exception example
is Arithmetic exception
Is This Answer Correct ? | 7 Yes | 0 No |
Answer / jreader
Exception and Error both classes extends Throwable class.
checked execption is an exception which need to be mentioned
in Throws list so that compiler can understand what type of
exception perticuler method can throw (forexample-
SQLException) whereas unchecked exception compiler will
handle and it comes at run time (for
example-IndexOutofBoundException)
Is This Answer Correct ? | 3 Yes | 0 No |
Answer / nitin jain
Checked exceptions check at the time of compile the program
where unchecked exception check at runtime.
Is This Answer Correct ? | 3 Yes | 0 No |
Describe string intern() methodology
You can create a string object as string str = “abc”; why cant a button object be created as button bt = “abc”;? Explain
Explain the pointers in Java?
What is null mean in java?
What is a platform?
Define how can we find the actual size of an object on the heap?
is it mandatory to deaclare all variables public static fianl in interfaces?if i declare like in the below program, public interface A { public static final int I=0; int j=0; } in interface A,what is the difference between I,j?
Is multiple inheritance allowed in Java? Why ?
What is yield () in java?
What is the main advantage of passing argument by reference?
what is mean by String and StringBuffer? What is mean by Methooverriding and Overloading?
Why do we use string?