Slightly offtopic, but "Calendar.getInstance().getTime();" will do exactly the same as just calling "new Date();"
Coming back to the issue, this is shorthand for
with one exception: you don't name the Calendar object.
You will want to learn this kind of approach; not only if you want to write it, but also if you want to read
Java. A slightly different method of programming can be found in java.lang.StringBuffer, java.lang.StringBuffer and java.lang.ProcessBuilder: most of their methods return the object itself:
This allows for huge chains of calls without ever having a named variable: