
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.
Moderators: Site Manager, fjwalraven
Code: Select all
try {
try {
Socket s = new ServerSocket(3030);
}catch(Exception e) {
s = new ServerSocket(4040);
}
}
Users browsing this forum: No registered users and 1 guest