Answer Posted / shahnawaz ali shah
Exception is coverable
Error is uncoverable
Exception can be handled
and Error can not be handled
Exceptio is an run time error when an abnormal condition is
occured the jvm detect it and make the object of that
abnormal condition and throws it to its own class and that
object is catched by catched block and catch block handled it
Error is the compile time error not runtime and it is not
covered it is only fixed by a programer.
Note
When Error occur then our programe stops and donot run
but If exception occur then nothing happining only try block
will be suspended and after that if any code is written that
will be executed properly means our system or programe work
properly.
| Is This Answer Correct ? | 116 Yes | 17 No |
Post New Answer View All Answers
Is there any way to find whether software installed in the
system is registered by just providing the .exe file?
I have tried the following code but its just displaying the
directory structure in the registry.
Here the code :
package com.msi.intaller;
import java.util.Iterator;
import ca.beq.util.win32.registry.RegistryKey;
import ca.beq.util.win32.registry.RootKey;
public class RegistryFinder {
public static void main(String... args) throws Exception
{
RegistryKey.initialize(RegistryFinder.class.getResource("jRe
gistryKey.dll").getFile());
RegistryKey key = new RegistryKey(RootKey.HKLM,
"Software\\ODBC");
for (Iterator
What are the 7 types of characters?
How do you define a parameter?
How many types of voids are there?
Can we sort list in java?
Why do we need data structure in java?
Where is jre installed?
What occurs when an object is constructed?
When do you call copy constructor?
Differentiate between class and structure.
Write a method that will remove given character from the string?
what is enumset?
Does the order of public and static declaration matter in main method?
Detail discussions on JVM, memory management and garbage collector.
Explain access modifiers in java.