Java 7 try-with-resources: Difference between revisions
Jump to navigation
Jump to search
Line 11: | Line 11: | ||
Local variables declared as resources in a try-with-resources statement are [[Java_final_Keyword#Overview|implicitly final]]. | Local variables declared as resources in a try-with-resources statement are [[Java_final_Keyword#Overview|implicitly final]]. | ||
=AutoCloseable= | |||
=TODO= | =TODO= | ||
* Can be used with streams: [[Java_8_Streams_API#From_Files]] | * Can be used with streams: [[Java_8_Streams_API#From_Files]] |
Revision as of 21:10, 29 March 2018
External
- https://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html
- http://docs.oracle.com/javase/7/docs/technotes/guides/language/try-with-resources.html
Internal
Overview
Local variables declared as resources in a try-with-resources statement are implicitly final.
AutoCloseable
TODO
- Can be used with streams: Java_8_Streams_API#From_Files