0% found this document useful (0 votes)
2 views4 pages

Java 8 Coding Questions - New

The document contains a comprehensive list of 92 Java 8 coding questions that cover various programming concepts and functionalities. These questions include tasks such as filtering numbers, calculating sums, checking for duplicates, and manipulating strings using Java 8 features like Streams and Lambdas. The questions are designed to test and enhance the understanding of Java 8 programming techniques.

Uploaded by

Maheswaran Mathi
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views4 pages

Java 8 Coding Questions - New

The document contains a comprehensive list of 92 Java 8 coding questions that cover various programming concepts and functionalities. These questions include tasks such as filtering numbers, calculating sums, checking for duplicates, and manipulating strings using Java 8 features like Streams and Lambdas. The questions are designed to test and enhance the understanding of Java 8 programming techniques.

Uploaded by

Maheswaran Mathi
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Java 8 Coding Questions:

1. Write a Java 8 program to filter even numbers from a list ?

2. Write a Java 8 program to calculate the sum of integers in a list ?

3. Write a Java 8 program to find the maximum element from a list ?

4. Write a Java 8 program to check if a list contains a specific element ?

5. Write a Java 8 program to find the sum of all even numbers in a list of integers ?

6. Write a Java 8 program to concatenate all strings in a list ?

7. Write a Java 8 program to find the average length of strings in a list of strings?

8. Write a Java 8 program to count the occurrences of a given character in a list of strings?

9. Write a Java 8 program to check if all elements in a list are greater than a given value?

[Link] a Java 8 program to find the factorial of a given number ?

[Link] a Java 8 program to remove duplicate elements from a list ?

[Link] a Java 8 program to find the longest string in a list of strings ?

[Link] a Java 8 program to convert all strings to uppercase in a list ?

[Link] a Java 8 program to sort a list of strings in alphabetical order ?

[Link] a Java 8 program to calculate the average of even numbers in a list of integers ?

[Link] a Java 8 program to convert a list of integers to a comma-separated string ?

[Link] a Java 8 program to find the last element in a list ?

[Link] a Java 8 program to find the second smallest element in a list of integers ?

[Link] a Java 8 program to find the frequency of each word in a list of strings?

[Link] a Java 8 program to find the sum of digits of a list of integers?

[Link] a Java 8 program to find the distinct characters in a list of strings ?

[Link] Java 8 program to find all the numbers starting with 2 in given list ?

[Link] Java 8 program to find the first element of the given integers list ?

[Link] Java 8 program to count the total numbers of elements in the given integers list ?

[Link] Java 8 program to sort all the values of the list in ascending order?

[Link] Java 8 program to sort all the values of the list in descending order?

[Link] Java 8 program to check if given integer array contains duplicate or not.

Return true if it contains duplicate character.

[Link] a Java 8 program to concatenate two Streams?


[Link] Java 8 program to perform square on list elements and filter numbers greater than 1000.

[Link] Java 8 program to separate odd and even numbers from the given list of integers?

[Link] Java 8 program to print the numbers which are multiples of 3?

[Link] Java 8 program to merge two unsorted arrays into single sorted array?

[Link] Java 8 program to merge two unsorted arrays into single sorted array by removing
duplicates?

[Link] program to get first three maximum numbers and three minimum numbers from the given
list of integers?

[Link] 8 program to check if two strings are anagrams or not?

[Link] Java 8 program to find sum of all digits of a number ?

[Link] Java 8 program to sort given list of strings according to decreasing order of their length?

[Link] Java 8 program to find common elements between two lists?

[Link] Java 8 program to prints the first 5 odd numbers?

[Link] Java 8 program to print the most repeated element in an array?

[Link] Java 8 program to print duplicate elements from an array?

[Link] Java 8 program to find first repeated character in the given string?

[Link] a Java 8 program to check if a list contains a specific string ?

[Link] a Java 8 program print all the strings of given length ?

[Link] a Java 8 program print first non repetitive character in the string ?

[Link] a Java 8 program to find the product of all elements in a list ?

[Link] a Java 8 program to check if all elements in a list are unique ?

[Link] a Java 8 program to find the first word in a list that starts with given letter ?

[Link] a Java 8 program to find the sum of the first 10 natural numbers ?

[Link] a Java 8 program to find the product of the first 10 natural numbers ?

[Link] a list of integers, find out all the even numbers that exist in the list using Stream functions?

[Link] a list of integers, find out all the numbers starting with 1 using Stream functions?

[Link] to find duplicate elements in a given integers list in java using Stream functions?

[Link] the list of integers, find the first element of the list using Stream functions?

[Link] a list of integers, find the total number of elements present in the list using Stream
functions?

[Link] a list of integers, find the maximum value element present in it using Stream functions?

[Link] a String, find the first non-repeated character in it using Stream functions?
[Link] a String, find the first repeated character in it using Stream functions?

[Link] a list of integers, sort all the values present in it using Stream functions?

[Link] a list of integers, sort all the values present in it in descending order using Stream
functions?

[Link] an integer array nums, return true if any value appears at least twice in the array,

and return false if every element is distinct.

[Link] will you get the current date and time using Java 8 Date and Time API?

[Link] a Java 8 program to concatenate two Streams?

[Link] 8 program to perform cube on list elements and filter numbers greater than 50.

[Link] a Java 8 program to sort an array and then convert the sorted array into Stream?

[Link] to use map to convert object into Uppercase in Java 8?

[Link] to convert a List of objects into a Map by considering duplicated keys and store them in
sorted order?

[Link] to count each element/word from the String ArrayList in Java8?

[Link] to find only duplicate elements with its count from the String ArrayList in Java8?

[Link] to check if list is empty in Java 8 using Optional, if not null iterate through the list and print
the object?

[Link] a Program to find the Maximum element in an array?

[Link] a program to print the count of each character in a String?

[Link] out the count of male and female employees present in the organization?

[Link] a program to print the names of all departments in the organization.

[Link] the average age of Male and Female Employees.

[Link] the Names of employees who joined after 2015.

[Link] the number of employees in each department.

[Link] out the average salary of each department.

[Link] out the oldest employee, his/her age and department?

[Link] out the average and total salary of the organization.

[Link] down the employees of each department.

[Link] out the highest experienced employees in the organization

[Link] Sum Of All Numbers

[Link] Average Of All Numbers

[Link], Filter and Average of Numbers


[Link] Even & Odd Numbers using Streams

[Link] Numbers Starts With Prefix 2 using Streams

[Link] Duplicate Numbers using Streams

[Link] Max and Min Numbers using Streams

[Link] Numbers (ASC/DESC) using Streams

[Link]/ignore first 5 numbers using Limit & Skip in Streams

[Link] Second Highest/Lowest Number using Streams

You might also like