Variable Arguments (Varargs) is a syntactic sugar type feature that allows writing a methods that can take a variable number of arguments.
The search
method below can be called as search()
, search("book")
, search("book", "paper")
,
etc.
public static void search(String ... keywords){
// method body
}
Resources:
JavaFX is a technology for building Java-based GUIs. Previously it was a part Java itself, but has become a third-party dependency since then. It is now being maintained by OpenJDK.
Java 8 introduced a number of new features (e.g. Lambdas, Streams) that are not trivial to learn but also extremely useful to know.
Here is an overview of new Java 8 features .(written by Benjamin Winterberg)
Tutorials:
Java 8 Tutorial -- from tutorialspoint.com. Also provides a way to try out code online
A video tutorial by well-known Java coach Venkat Subramaniam