Question 1 of 25
Hints left: 3
Q1
What does SAM stand for in the context of Functional Interface?
Q2
What is used to inject mock fields into the tested object automatically?
Q3
What are the two types of Streams offered by java 8?
Q4
Which of the following is not introduced with Java 8?
Q5
How to read entire file in one line using java 8?
Q6
Which method is used to create a directory with fileattributes?
Q7
What is Optional object used for?
Q8
How can we create a symbolic link to file?
Q9
How can we get the size of specified file?
Q10
How can we delete all files in a directory?
Q11
What does assertSame() method use for assertion?
Q12
How to let junits know that they need to be run using PowerMock?
Q13
Which method can be used to check fileAccessiblity?
Q14
Which jar provides FileUtils which contains methods for file operations?
Q15
How to copy the file from one location to other?
Q16
What is the purpose of BooleanSupplier function interface?
Q17
What is the substitute of Rhino javascript engine in Java 8?
Q18
Which feature of java 8 enables us to create a work stealing thread pool using all available processors at its target?
Q19
What does Files.lines(Path path) do?
Q20
Which feature of java 7 allows to not explicitly close IO resource?
Q21
Which is the new method introduced in java 8 to iterate over a collection?
Q22
What is the return type of lambda expression?
Q23
How can we simulate if then behavior in Junits?
Q24
How can we filter lines based on content?
Q25
How can junits be implemented using maven?