A pirate treasure can be found as long as there’s some map or reference. So too with a Java object.
Java contains a rich set of methods for dealing with date and time operations. This quiz tests your knowledge of that functionality.
If a mathematical equation’s arguments aren’t accessible, what happens to the math operation?
Prepare for a tricky adventure when evaluating expressions that contain arrays.
What happens when you throw a checked exception? There are some tricky special cases.
There are rules about initializing enums. You need to know them.
You never can tell when the Java garbage collector will pick up the trash.
Be sure to know the difference between identifiers and specifiers.
Do you know how the compiler selects which method to invoke when it’s forced to choose due to overloading?
Be sure to use the checkPermission and doPrivileged methods correctly.
What happens when a default method is hidden and inaccessible?
When overloading a Java method, be careful to specify the appropriate return types.
Is a list unmodifiable? Is it immutable? What about the views of the list?
The trick is to visualize how stream elements travel along the pipeline.
The average, sum, and count methods are trickier than they might seem.
Some acceptable shortcuts for annotations are inconsistent with Java’s usual syntax.