GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Tech FAQs  >  Programming  >  Java
Go To First  |  Previous Question  |  Next Question 
 Java  |  Question 251 of 937    Print  
Use of throws exception

  
Total Answers and Comments: 2 Last Update: February 01, 2006   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
November 08, 2005 05:31:19   
san        

RE: Use of throws exception
IF EXCEPTION WILL OCCUR THEN WE CAN THROW THAT TYPE OF EXCEPTION IN TRY BLOCK AND CATCH IT IN CATCH BLOCK
 
Is this answer useful? Yes | No
February 01, 2006 10:13:30   
chandanareddy Member Since: January 2006   Contribution: 5    

RE: Use of throws exception

If a method is not Handling a checked exception and wants the exception to be propagated to the caller of the method then that exception is declared in the Throws clause of its method prototype.

Regards

Chandana.


 
Is this answer useful? Yes | No

 Related Questions

Latest Answer : An exception in java is a signal that indicates the occurence of some unexpected condition during execution.Regards,Chandana.R                                                                                                                                                      ...

Latest Answer : Checked Exceptions must be explicitly handled by the programmer by using try/catch& finally blocks (or) it must be propogated to its callable class.Unchecked Exceptions may or may not be handled by programmer. The JVM provides the DefaultHandler to ...

Latest Answer : Exception is nothing but the Error which we can except.Error is nothing But whcih we cant expect while executing program ...

Latest Answer : We cannot avoid a runtime exception it will be handled by the JVM's default exception handler and print's the particular stacktrace. ...

Latest Answer : throw is used to explicitly thorw some exception throws is used to tell the compiler the this method might through mentioned type of exception. ...

Latest Answer : You can create your own exception by extending the java.io.Exception.Throw the that exception using throw like this :public void method() throws userDefinedException {try {}catch(exception e) { throw new userDefunedExcpetion();} ...

Latest Answer : Checked exceptions are those exceptions which the programmer should handle otherwise the compiler will give an error.In case of Unchecked exceptions, even though if we don't handle compiler wont give any error. ...

Latest Answer : If a method is not Handling a checked exception and wants the exception to be propagated to the caller of the method then that exception is declared in the Throws clause of its method prototype.Regards,Chandana.                                                                                                                                                                           ...


Latest Answer : exception object can be caught only once after it was caught i think it will be eligible for garbage collection. Not that it will be immediately destroyed but it will be destroyed soon if we are not using that object to detect what kind of exception it ...


 Sponsored Links

 
Related Articles

Service Oriented Java Business Integration Review

Service Oriented Java Business Integration Review Introduction If you ve read through the texts which give you an introduction to SOA or Web Services you will often find them to be quite frustrating and the reason for this is because they spend too much time referencing business processes which are
 

Concepts of Object-Oriented Programming

Object Oriented JavaScript In this chapter you ll learn about OOP Object Oriented Programming and how it relates to JavaScript As an ASP NET developer you probably have some experience working with objects and you may even be familiar with concepts such as inheritance However unless you re already a
 

Java and Client Server Models

Java and Client Server Models The Role of Client Servers on the Web Client server models provide the essential mechanisms for working with the Internet In fact most of the World Wide Web is built according to this paradigm In client server models the web browsers run by millions of users are the cli
 

SQL Programming

SQL Programming Overview Anybody who has done something for a long time has probably wanted to change how things work at some point or another. A worker at a mill might have found a more efficient way of cutting logs, or a mathematics teacher might have had a hand in changing a school’s al
 

WinRunner Programming Concepts

If you want to create WinRunner scripts that are highly efficient, there are important programming concepts that you will want to become familiar with. Understanding these concepts will provide you with a large number of key benefits. In addition to understanding these concepts, you must also learn
 

Programming Languages Certification

IT Certification programs have several options that will offer you the best knowledge.  By learning everything that you need to know about information technology you will be able to open new doors to your career and personal business desires.  IT Certification offers several vari
 

JavaScript Exception Handling – Part II

JavaScript Exception Handling Part II In this JavaScript tutorial you will learn about exception handling viz try… catch finally statement and nested try… catch statements along with syntax and examples mosgoogle center try… catch finally Statement JavaScript has a
 

JavaScript Exception Handling – Part I

JavaScript Exception Handling Part I In this JavaScript tutorial you will learn about Exception Handling Catching errors in JavaScript Using try catch statement and throw in JavaScript along with syntax and examples mosgoogle center It is impossible for a programmer to write a program without erro
 

Using UML with Java

Using UML with Java While Java is not a new language its application for the development of embedded systems is quite new Developers are beginning to take a second look at modeling languages such as UML and many feel it can be a powerful tool in their development arsenal mosgoogle center Introductio
 

Neuro-linguistic Programming Methods

Neuro linguistic Programming Methods There are several methods used for performing Neuro linguistic Programming on an individual for obtaining insights into the psyche of the person in order to correct to modify certain patterns of behavior These techniques are also used for Neuro linguistic trainin
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2010 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape