About Question enthuware.ocpjp.v11.2.1033 :
Moderator: admin
- 
				jeroenisanders
 - Posts: 5
 - Joined: Sun Feb 07, 2021 9:49 am
 - Contact:
 
About Question enthuware.ocpjp.v11.2.1033 :
When adding throws this also works. Behind the scenes, the compiler replaces a try-with-resources block with a try and finally block. So not mandatory to put a catch or finally block
			
			
									
									
						- 
				admin
 - Site Admin
 - Posts: 10443
 - Joined: Fri Sep 10, 2010 9:26 pm
 - Contact:
 
Re: About Question enthuware.ocpjp.v11.2.1033 :
Please read the problem statement carefully. It is explicitly about the try without resources statement.
			
			
									
									
						- 
				jeroenisanders
 - Posts: 5
 - Joined: Sun Feb 07, 2021 9:49 am
 - Contact:
 
Re: About Question enthuware.ocpjp.v11.2.1033 :
Okay clear. Thanks.
			
			
									
									
						Who is online
Users browsing this forum: No registered users and 28 guests