com.enthuware.ets.scjp.v6.2.31

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
normc
Posts: 5
Joined: Thu Apr 19, 2012 2:18 pm
Contact:

com.enthuware.ets.scjp.v6.2.31

Post by normc »

(note: clicking on the 'discuss' button on question in subject field actually opened up :
com.enthuware.ets.scjp.v6.2.314
So I started this from scratch.

My Question:
Why does this (below) not result in compile error due to 'unreachable statement'?
Putting for( ;; ); before the try block will result in compile error. What's the diff? Thanks.

try {
for( ;; );
}finally { }

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 204 guests