aspose file tools
The moose likes Java in General and the fly likes java in General with exceptions Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "java in General with exceptions" Watch "java in General with exceptions" New topic
Author

java in General with exceptions

Gangireddy Danam
Greenhorn

Joined: Aug 08, 2012
Posts: 29

in real time environment is there any relationship between validations and exception handling..?
i mean validations prevents without entering invalid data.But exceptions are caused due to entered invalid data into program..?
Tell me the answer how real time people utilize exception handling ?
Jeff Verdegan
Bartender

Joined: Jan 03, 2004
Posts: 5893
    
    6

Gangireddy Danam wrote:in real time environment is there any relationship between validations and exception handling..?


If we are given invalid data, we will often throw an exception. For instance, if "123.456" is passed to Integer.parseInt(), it will throw NumberFormatException.

Also, note that you probably mean "real-world", not "real-time."
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: java in General with exceptions
 
Similar Threads
How should I split up this big method? Still need help please!
Throw and System.out.println ?
Runtime Exception
Problem in unzipping a folder using java.util.zip API
Error and Exception