About Question enthuware.ocajp.i.v7.2.1025 :

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
Veritas
Posts: 12
Joined: Thu Aug 21, 2014 9:34 am
Contact:

About Question enthuware.ocajp.i.v7.2.1025 :

Post by Veritas »

i kinda feel like im too focused on typos ;)

Note that a try with resources block may or may not to have any catch or finally block at all.

Looks like the "to" is too much to me.

admin
Site Admin
Posts: 10389
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.ocajp.i.v7.2.1025 :

Post by admin »

You are right. Fixed.
thank you for your feedback!

Daniel Clinton
Posts: 29
Joined: Fri Aug 08, 2014 11:22 am
Contact:

Re: About Question enthuware.ocajp.i.v7.2.1025 :

Post by Daniel Clinton »

A moot point but maybe worth a mention in case it might help us:
As well as the try with no catch/finally isn't there a second issue with

Code: Select all

try {
  try {
     Socket s = new ServerSocket(3030);
  }catch(Exception e) { 
    s = new ServerSocket(4040);
  } 
}
...namely that the variable s would not be in scope in the catch block?

admin
Site Admin
Posts: 10389
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.ocajp.i.v7.2.1025 :

Post by admin »

Yes, that is also a problem.

Post Reply

Who is online

Users browsing this forum: No registered users and 35 guests