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 |
Explain role of constructor in a java application?
If try block is successfully executed, Then Is Finally block executed?
What is tree in java?
List some oops concepts in java?
What is the difference between yielding and sleeping in java programming?
How GC (Garbage Collector) knows the objects reference is unused.Whether GC removes the unused object Parmanently or it maintains something.
What is design pattern and there types?
what is private constructor?what are the uses of writing private constructor in our program?
What is a generic data type?
2) Suppose there are 5 directories having lot of files (say txt files) in each directory. 2 things :- 2.1) You want to search for filenames which have a particular pattern. 2.2) Out of these filtered files you want to search for a particular keyword or a search string. How can you achieve this?
what is the use of abstract class and interface with example?
2 Answers Cycore, DNS, Technoram,
What is java reflection?