Core Java - Interview Questions and Answers for 'Java8' | Search Interview Question - javasearch.buggybread.com
Javasearch.buggybread.com

Search Interview Questions


 More than 3000 questions in repository.
 There are more than 900 unanswered questions.
Click here and help us by providing the answer.
 Have a video suggestion.
Click Correct / Improve and please let us know.
Label / Company      Label / Company / Text

   



Interview Questions and Answers - Order By Newest

   
Rarely asked as it was introduced with Java 8.
 Q31. Name few java.lang classes introduced with Java 8 ?Core Java
Ans. http://www.buggybread.com/2015/01/migrating-to-java-8-new-classes.html

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     java   java.lang   java8   java 8


Rarely asked as it was introduced with Java 8.
 Q32. What is DocLint in Java 8 ?Core Java
Ans. DocLint Provide a means to detect errors in Javadoc comments early in the development cycle and in a way that is easily linked back to the source code.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     java   java 8   doclint   java8 features


Rarely asked as it was introduced with Java 8.
 Q33. What are the errors identified by DocLint ?Core Java
Ans. Bad syntax, such as unescaped characters or unmatched parentheses

Bad HTML, such as invalid or missing tags or attributes

Bad references, such as referencing a non-existent type with @see

Accessibility errors, such as a missing summary or caption from a table

Missing info, such as an undocumented parameter

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     java   java8   java 8   doclint


Rarely asked as it was introduced with Java 8.
 Q34. Which keyword specify that a variable is effectively final ? a. final b. No Keyword c. Both of the above d. None of the aboveCore Java
Ans. No Keyword

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     java   java 8   java8   final   effectively final        rare


Rarely asked as it was introduced with Java 8.
 Q35. Which of the following has been introduced with Java 8 ? a. StringBuffer b. StringBuilder c. StringFilter d. StringJoinerCore Java
Ans. StringJoiner

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     java   java8   java 8   string   stringjoiner


 Q36. How Spliterator in Java 8 different than iterator ?Core Java
Ans. Though there are many differences the way internally they both iterates the collections and streams respectively, but the main difference in performance that is achieved by spliterator as it can iterate Streams in Parallel whereas iterator only iterates collections sequentially.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     java8  java 8  spliterator  java 8 streams  streams


 Q37. Explain Java 8 concurrency mechanism.Core Java
 This question was recently asked at 'IBM'.This question is still unanswered. Can you please provide an answer.


 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     synchronization  concurrency  java 8  java8     Asked in 1 Companies


 Q38. Lets say we have a set "set1" with objects of Class A, Class has a non static string called element1, Write a code ( using lambda expression ) to see if there is any object in the set with element1 = "Hello". Core Java
Ans. set1.stream().filter(p->p.element1.equals("Hello")).findAny().isPreent();

or

set1.stream().map(A::getElement1).anyMatch("Hello"::equals)

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     lambda expressions  java 8  java8  java 8 filter  findAny()


 Q39. Given a collection of Employee objects, how can we get the customers with name starting with 'A' using lambda expression.Core Java
Ans. List emp = Arrays.asList("American", "Indian", "Finn");
emp.stream().filter(em -> em.startsWith("A")).forEach(System.out.println);

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     java8  java 8  lambda     Asked in 1 Companies


 Q40. Write a unit test case using java 8.JUnit
Ans. public List convertAllToUpperCase(List words) {
return words.stream().map(String::toUpperCase).collect(Collectors.toList());
}

@Test
public void testAllToUpperCase() {
List expected = Arrays.asList("JAVA8", "STREAMS");
List result = convertAllToUpperCase(Arrays.asList("java8", "streams"));
assertEquals(expected, result);
}

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     java8  java 8     Asked in 1 Companies


 Q41. What are the advantages and disadvantages of Lambda Expression ?Core Java
 This question was recently asked at 'Number 8'.This question is still unanswered. Can you please provide an answer.


 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     java8  java 8  java lambda expressions     Asked in 1 Companies


previous 30   

Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked: