Java Magazine, May/June 2018
ORACLE COM JAVAMAGAZINE MAY JUNE 2018 73 java 10 Conclusion var is a helpful addition to the Java language in terms of productivity and readability but the fun doesnt stop there Future versions of Java will continue the steady evolution and modernization of the language For example in Java 11 to be released a mere six months after Java 10 and with long term support the var keyword will be allowed within the parameters of a lambda expression This is useful because it allows you to have a formal parameter whose type is inferred but onto which you can still add Java annotations for example the following @ Nonnull var x var y x process y Other ideas that have been implemented in functional programming languages and are ready for the mainstream will be working their way into future Java versions for example pattern matching and value types This doesnt mean that these improvements will stop Java from being the Java that developers know and love Itll just be more flexible readable and concise than ever before article Raoul Gabriel Urma @ raoulUK is the CEO and cofounder of Cambridge Spark a leading learning community for data scientists and developers in the UK He is also chairman and cofounder of Cambridge Coding Academy a community of young coders and students Urma is coauthor of the best selling programming book Java 8 in Action Manning Publications 2015 He holds a PhD in computer science from the University of Cambridge Richard Warburton @ richardwarburto is a software engineer teacher author and Java Champion He is the author of the best selling Java 8 Lambdas OReilly Media 2014 and helps developers learn via Iteratr Learning and at Pluralsight Warburton has delivered hundreds of talks and training courses He holds a PhD from the University of Warwick
You must have JavaScript enabled to view digital editions.