Infosys Certified Java SE8 Professional
Practice with real exam-pattern questions for Infosys Certified Java SE8 Professional. Each question includes a detailed explanation to help you understand the concept, not just memorise the answer. Try 10 questions free — no login required.
Full question bank for this exam + 1,357+ others. Cancel anytime.
Join Premium10 Infosys Certified Java SE8 Professional practice questions with answers
Real Lex exam-pattern multiple-choice questions for the Infosys Certified Java SE8 Professional certification. Each question includes the correct answer. The full question bank is available to Premium members.
- Question 1
Identify the correct statement about System.out::println expression?
- ✓
System.out::println method is a instance method reference to println method of out object of System class.
Correct - B
System.out::println method is a static method reference to println method of out object of System class
- C
System.out::println is a constructor reference to print out object of f system class
- D
None of the above
- ✓
- Question 2
The number of abstract methods that cane there in functional interface is?
- ✓
0
Correct - B
1
- C
2
- D
Any
- ✓
- Question 3
Which one of the bellow statements is true about Parallel Streams ?
- ✓
filter
Correct - B
map
- C
max
- D
min
- ✓
- Question 4
Given the code below what will be the output ?
@FunctionalInterface
interface StringFormatter {
public String format(String s1, String s2);
}public class TestDemo {
public static void main(String[] args) {
StringFormatter sf1=(s1,s2)->{return (s1+s2);}; // Line 1
evalnput("Lambda ", "Expression",sf1);
StringFormatter sf2=(s1,s2)->{return (s1.toUpperCase())+" "+(s2.toUpperCase());}; // Line 2
evalnput("java", "se8 features",sf2);}
public static void evalnput(String s1, String s2, StringFormatter sf) {
System.out.println(sf.format(s1, s2));
}
}- ✓
Lambda Expression
Correct - B
JAVA SE8 FEATURES
- C
Lambda Expression
JAVA SE8 FEATURES - D
JAVA SE8 FEATURES
Lambda Expression
- ✓
- Question 5
Consider the below code snippet:
import java.util.ArrayList;
import java.util.stream.Collectors;
public class CollectionStream {
public static void main(String[] args) {
ArrayListlist=new ArrayList<>();
list.add(12.0);
list.add(35.0);
list.add(40.0);
Double sumPrices = list.stream() .collect(Collectors.summingDouble(x->x));
System.out.println("Sum : "+sumPrices);
Integer sumId = list.stream().collect(Collectors.
summingInt(x->x.intValue()));
System.out.println("Sum: "+sumId);
Double avgId =list.stream().collect(Collectors.
averagingDouble(x->x));
System.out.println("Avg: "+avgId);
}
}
What is the output when it is executed?- ✓
Sum: 87
Sum: 87
Avg: 29 Correct - B
Sum: 87.0
Sum: 87
Avg: 29.0 - C Compilation error occurs
- D Runtime exception
- ✓
Sum: 87
- Question 6
Functional Interface can be act as target types for
- ✓
Streams
Correct - B
Lambda Expressions
- C
Default methods
- D
None
- ✓
- Question 7
Which one of the below statements is false about functional interface?
- ✓
Functional Interface can have concrete methods
Correct - B
Functional Interface cannot have many abstract methods
- C
Functional Interface cannot have static methods
- D
None of the above
- ✓
- Question 8
Functional Interfaces method is
- ✓
abstract
Correct - B
static
- C
final
- D
all
- ✓
- Question 9
What are the changes to be made for the below code to print the string 12345?
Stream.iterate(1, x -> x++).limit(5).map(x -> x).collect(Collectors.joining());
A. Change Collectors.joining() to Collectors.joining("").
B. Change map(x -> x) to map(x -> "" + x) .
C. Change x -> x++ to x -> ++x.
D. Add forEach(System.out::print) after the call to collect().- ✓
Option B,C
Correct - B
Option A,C
- C
Option A,B
- D
Option B, D
- ✓
- Question 10
Consider the below code snippet:
import java.util.TreeSet;
import java.util.stream.Stream;
public class TreeStream {
public static void main(String[] args) {
Stream stream = Stream.of("w", "o", "l", "f","2");
TreeSet set = stream.collect(TreeSet::new, TreeSet::add,TreeSet::addAll);
System.out.println(set);
}
}
What is the output when it is executed?- ✓ [2,f, l, o, w] Correct
- B [w,o,l,f,2]
- C [2,w,o,l,f]
- D
[w,o,l,f,2]
More in Java
Infosys Certified Expert Programmer-Level 1
Infosys Certified Go Programmer
Infosys Certified Go REST Developer
Pay once. Clear every cert this year.
One subscription, full Telegram channel access, every PDF posted during your membership.
- Full access to all 1,357+ certifications
- Monthly updated question banks
- Telegram private channel access
- Cancel anytime
- Everything in Monthly
- Save ₹2,100 vs monthly billing
- Priority answer key requests
- Best for increasing DQ score fast
- Everything in Quarterly
- Lifetime channel access — no renewals
- All future certifications included
- Priority response from admin team
Common questions, straight answers.
A monthly-updated Telegram channel where we post real exam-pattern question banks and detailed answer keys for 1,357+ Infosys Lex certifications. You join once, you get every PDF posted during your membership.
Right after payment on our Graphy page, you'll receive a private invite link to the Telegram channel. Access is instant — usually under 30 seconds.
We compile question banks from the actual Lex test pattern, sourced and verified by 180K+ community members who've recently cleared these exams. Match rate is consistently 85–95%.
Every single month. When Infosys rolls out new versions of certifications, we post updated dumps within 7–10 days. You'll see channel activity weekly.
Clearing certifications is one of the highest-weighted DQ factors. Members typically clear 3–5 certifications in their first 3 months, which moves DQ scores up by a full band.