GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Certification  >  Sun
Go To First  |  Previous Question  |  Next Question 
 Sun  |  Question 31 of 38    Print  
1)What is the difference between Throw & Throws?
2)Expain the use of tansient variable with example?

  
Total Answers and Comments: 2 Last Update: September 21, 2006     Asked by: eldhose222 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
September 07, 2006 13:06:36   #1  
vinaygundu Member Since: January 2006   Contribution: 6    

RE: 1)What is the difference between Throw & Throws?

when we are using thows when exception coms thatperticular exceptions handle by JVM.

using throw you can throw the perticular exception.

like:

 try {
       //..
      
     }catch(xxException e) {
       //..
       throw new xxxException("xxx");
     }catch(Excepiton ee) {
       //..
     }finally {
       try {
        //..
       }catch(xxException eee) {
        //..
       }
     }

You use the Transient keyword to indicate to the Java virtual machine that the indicated variable is not part of the persistent state of the object.

when your serialization that object it can't persistent that value


 
Is this answer useful? Yes | No
September 21, 2006 10:27:49   #2  
Naveen Muniraja        

RE: 1)What is the difference between Throw & Throws?
hi there,throws::::(DECLARATION) the way we decalre that exception might occur...... it is a caution to the JVM so that it prepares to handle the Exceptionthrow::::: if at any stage of coding we r sure that an exception might occur and unfortunately if we donot know how to handle that exception then we THROW the Exception....... so here by we make sure the control is in our handtransient::::During the process of serialization if u donot want a particular variable to be serialized then we make that variable TRANSIENT
 
Is this answer useful? Yes | No

 Related Questions


 Sponsored Links

 
Related Articles

Welcome to GeekInterview

GeekInterview.com is an Open Database where you can share interview quesitons, comment/answer any questions without any registration just by providing name and optional email address. Your email address will not be displayed on the site. If you have any specific questions is not on the site, email u
 

C Sharp Interview Questions Updated

Thanks to the site visitor Mike for sending the C# Interview Questions.  You can find the latest questions here. C# Interview QuestionsPlease use the "Submit Questions" , if you would like to share any questions from you interviews.
 

Best Answers to the 201 Most Frequently Asked Interview Questions

The most crucial part of your job search is knowing how to respond to the toughest interview questions u because the best candidate doesn't necessarily get the job....the best interviewee does! You need Microsoft Reader for Desktop and Laptop PC to read this. Please note that you can just read the b
 

50 Common Problems With Resumes and Cover Letters

The Resume Makeover: 50 Common Problems With Resumes and Cover Letters: This guide offers readers vital career information but with a solution-oriented approach. "No matter how much you think you know about writing resumes, you'll learn something new. I'd recommend this book to anyone conductin
 

Executive Resumes

Advice for upper-level managers and executives. Browse through sample executive resumes.by ResumeEdge.com - The Net's Premier Resume Writing and Editing ServiceExecutive resume formats generally have: A more conservative appearance. A separate area showcasing Career Accomplish
 

Fearless Interviewing - How to Win the Job by Communicating with Confidence

A job interview is one of life's most stressful and challenging experiences. Fearless Interviewing presents a strategic approach to interviewing, one that tips the scales back in favor of the job applicant. It provides useful advice on all aspects of the interviewing process, including how to: Produ
 

201 Killer Cover Letters

Job-search guide provides online job-search techniques and tips for transferring skills across industries. Includes sample letters for every possible job-hunting situation, tips on customizing and targeting letters for maximum impact, and techniques for using the cover letter to overcome 'objectiona
 

201 Best Questions To Ask On Your Interview

Packed with 201 proven questions, including examples of some of the smartest and dumbest interview questions from hundreds of recruiters, job coaches, hiring managers, and Fortune 500 human resources professionals, this hands-on guide gives you the edge you need. Publisher: McGraw-Hill; ISBN: B00006
 

Oracle Apps 11i ERP Enterprise Resource Planning Overview

ERP (Enterprise Resource Planning) Overview covers What is ERP, Brief history of ERP, Why is it necessary, Market Leaders and the future of ERPWhat is ERP? Enterprise Resource Planning or ERP is an industry term for integrated, multi-module application software packages that are designed to serve an
 

Oracle Apps 11i - Overview of popular ERP Products

This tutorial explains about different ERP Products and how they are being used in the industry. Oracle E- Business SuiteOracle E-Business Suite is the industry's only complete and integrated set of enterprise applications, working together seamlessly to streamline every area of your business—
 

Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape