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. |
|
| ||||
Interview Questions and Answers - Order By Newest | ||||
Rarely asked as it was introduced with Java 8. | ||||
| ||||
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. | ||||
| ||||
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. | ||||
| ||||
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. | ||||
| ||||
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. | ||||
| ||||
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 | ||||
| ||||
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 | ||||
| ||||
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 | ||||
| ||||
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() | ||||
| ||||
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 | ||||
| ||||
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 | ||||
| ||||
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 | ||||