Interview Question on Java 8
1.
What is Java 8 ?
Ans:
It is a major feature release of Java Programming Language.
2.
What are the new features of the Java 8 ?
Ans:
a.
Lambda expression
b.
Method references
c.
Default method
d.
Stream API
e.
Date Time API
f.
Nashorn , Javascript Engine
3.
What is Lambda expression ?
Ans:
Adds functional processing capability to java
4.
What is the use of the method references ?
Ans:
Referencing functions by their names instead of invoking them
directly
5.
What is default method ?
Ans:
Interface to have default method implementation.
Click on below link for Devops Interview QA book:
https://amzn.to/2YsiZah
Click on below link for Devops Interview QA book:
https://amzn.to/2YsiZah
6.
What is jdeps ?
Ans:
It is a compiler tools which are used to figure out dependencies.
7.
What is the use of the stream API ?
Ans:
It is used to facilitate pipeline processing.
8.
What is date time API ?
Ans:
Improved date time API
9.
What is Nashorn Javascript Engine ?
Ans:
A java-based engine to execute javascript code.
10.
What is the use of the sortusingjava8() method ?
Ans:
Uses sort function with a lambda expression as parameter to get the
sorting criteria.

Comments
Post a Comment