Wrox Programmer Forums
|
BOOK: Ivor Horton's Beginning Java, Java 7 Edition
This is the forum to discuss the Wrox book Ivor Horton's Beginning Java, Java 7 Edition by Ivor Horton ; ISBN: 978-0-470-40414-0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Ivor Horton's Beginning Java, Java 7 Edition section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 24th, 2013, 12:13 PM
Registered User
 
Join Date: Jan 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Beginning Java 7 Horton - try/catch vague

The last patagraph on page 288 in Structuring a Method and the following example is vague in its terseness (IMHO).

Its is not clear if the author is stating that for example if 2 sequencial statements (each capable of throuwing an exception) should have separate back to back try/catch blocks as opposed to one which catches for what might be very different exceptions?

Or simmilarly if those 2 statements might have an simple non-exception statement like incrementing a value just read, or writing a line to a log etc.in between the exception-possible lines, should be pulled from its logical location and be sandwiched between 2 try blocks?

I think a better example and maybe a few more words in text would make sure were are following Ivor's advice without possibly over crowding code - would help.

Last edited by wa2nfn; March 24th, 2013 at 12:33 PM..





Similar Threads
Thread Thread Starter Forum Replies Last Post
Java Code - Wrox - Beginning JAVA - Ivor Horton ponguru Java Databases 3 May 18th, 2006 12:30 PM
Java 2 Beginning / Ivor Horton JESwan BOOK: Beginning Java 2 3 May 6th, 2005 07:25 AM
Ivor Horton : Beginning Java 2 JDK 1.4 lingprash BOOK: Beginning Java 2 0 August 6th, 2004 01:56 AM
Beginning Java 2 SDK by Ivor Horton problems deviad Java GUI 1 November 27th, 2003 07:38 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.