how to make a un-checked exception as a checked exception one.

Answer Posted / janardhan

If a client can reasonably be expected to recover from an
exception, make it a checked exception. If a client cannot
do anything to recover from the exception, make it an
unchecked exception.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to write a program for sending mails between client and server

1547


What is abstract class constructor called?

563


What does localhost mean?

492


What is the difference between keyword and identifier?

528


Explain heap sort?

698






What is the meaning of course?

579


What is the difference between notify and notifyall method?

608


Is void a data type?

534


Can we override compareto method?

496


What if constructor is protected in java?

556


What the difference is between execute, execute Query, execute Update?

370


which pattern is default in scanner package?

1795


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 subkeys = key.subkeys(); subkeys.hasNext();) { RegistryKey subkey = subkeys.next(); System.out.println(subkey.getName()); // You need to check here if there's anything which matches "Mozilla FireFox". } } }

1347


What best practices should you follow while writing multithreaded code in java?

539


What are the two main uses of volatile in Java?

595