Motto: New stuff introduced in Java 8...
Q1: What's the output printed to console?
public static void main(String[] args) {
System.out.println(null instanceof Object);
}
Q2: Why text files and binary files are separated in new Java NIO API? In theory, text files are represented also in binary format internally.
Q3: Which of the following statement is a best practice? Please select one or multiple options:
- Never pass null as value for a method parameter.
- Never pass Optional as value for a method parameter.
- In order to fail-fast, checks for null values should be done at Service Layer.