Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What will happen if we cannot mention "finally" in Java
Program ???

Answers were Sorted based on User's Feedback



What will happen if we cannot mention "finally" in Java Program ???..

Answer / ashok

no problem.if we declare it is better.because compulsory
statements are written in finally block.

Is This Answer Correct ?    18 Yes 0 No

What will happen if we cannot mention "finally" in Java Program ???..

Answer / dhruva

finally must be used while dealing with I/O like,
file,stream and reader, etc.
in finally block, we r closing I/O objects in LIFO way to
avoid curruption of I/O during GC process and also, after
one I/O related program finish execution - just for the
sake of flushing for next use in better way

Is This Answer Correct ?    7 Yes 2 No

What will happen if we cannot mention "finally" in Java Program ???..

Answer / busi

Nothing happend , if any information should be displayed on
console we can use this finally block.Irrespective of code
execution the jvm will display the message on console.

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More Core Java Interview Questions

Why java is object oriented?

0 Answers  


What are the methods available in a class?

0 Answers  


What is difference between fileinputstream and filereader in java?

0 Answers  


What is import java util arraylist?

0 Answers  


How many classes can any class inherit java?

0 Answers  


What is the catch or declare rule for method declarations?

1 Answers  


Which method you will use to create a new file to store some log data. Each time a new log entry is necessary, write string to the file in java ?

0 Answers   HCL,


What is the difference between Array and Hash Table?

0 Answers   Impetus,


State the merge-sort principle and its time complexity.

0 Answers   Akamai Technologies,


Explain about fail fast iterators in java?

0 Answers  


What is a string what operation can be performed out with the help of a string?

0 Answers  


What is the purpose of garbage collection in java? When is it used?

0 Answers  


Categories