HomeExamsJavaTETAJEEDEVIC2011
TETAJEEDEVIC2011

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.

IntermediateJava75 min
Free questions

10 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.

  1. 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

  2. Question 2

    The number of abstract methods that cane there in functional interface is?

    • 0

      Correct
    • B

      1

    • C

      2

    • D

      Any

  3. Question 3

    Which one of the bellow statements is true about Parallel Streams ?

    • filter

      Correct
    • B

      map

    • C

      max

    • D

      min

  4. 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

  5. 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) {
    ArrayList list=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
  6. Question 6

    Functional Interface can be act as target types for

    • Streams

      Correct
    • B

      Lambda Expressions

    • C

      Default methods

    • D

      None

  7. 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

  8. Question 8

    Functional Interfaces method is

    • abstract

      Correct
    • B

      static

    • C

      final

    • D

      all

  9. 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

  10. 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]

Pricing

Pay once. Clear every cert this year.

One subscription, full Telegram channel access, every PDF posted during your membership.

Monthly
50% OFF
₹1,300₹2,600
Per month · cancel anytime
  • Full access to all 1,357+ certifications
  • Monthly updated question banks
  • Telegram private channel access
  • Cancel anytime
Get Monthly
POPULAR
Quarterly
44% OFF
₹1,800₹3,200
That's ₹600/mo · billed for 3 months
  • Everything in Monthly
  • Save ₹2,100 vs monthly billing
  • Priority answer key requests
  • Best for increasing DQ score fast
Get Quarterly
BEST VALUE
Lifetime
52% OFF
₹2,400₹5,000
One-time · lifetime access
  • Everything in Quarterly
  • Lifetime channel access — no renewals
  • All future certifications included
  • Priority response from admin team
Get Lifetime
FAQ

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.

i
InfyLexDumps

Independent exam preparation platform for Infosys Lex certifications. Real exam-pattern question banks, monthly updates, 180K+ community members.

Join Premium Telegram
Contact
  • @prepflixadmin
  • admin@prepflix.net
This platform is an independent educational resource and is not affiliated with or endorsed by Infosys Ltd. All certification names referenced are property of their respective owners.
© 2026 InfyLexDumps
Join Premium Telegram