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