Courseiva
Working with Streams and Lambda ExpressionshardMultiple SelectObjective-mapped

1Z0-829 Functional interface Practice Question

Which TWO statements about lambda expressions are true? (Choose two.) A. A lambda expression can be assigned to a functional interface variable. B. A lambda expression can access final or effectively final local variables. C. A lambda expression can throw any checked exception. D. A lambda expression can be used to create an instance of an abstract class. E. A lambda expression can be used to implement multiple abstract methods.

⚠ Common exam trap

The trap is that candidates think lambdas can implement multiple abstract methods or instantiate abstract classes, but they can only implement a single abstract method of a functional interface.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

A lambda expression can be assigned to a functional interface variable.

False: A lambda expression can only throw checked exceptions that are declared in the functional interface's abstract method, not any checked exception. Options B and C are true: a lambda can be assigned to a functional interface variable, and it can access final or effectively final local variables. Option D is false: a lambda can only implement one abstract method (functional interface). Option E is false: lambdas cannot instantiate abstract classes; they only implement functional interfaces.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • A lambda expression can throw any checked exception.

    Why it's wrong here

    False: Lambdas can only throw checked exceptions declared in the functional interface method, not any checked exception.

  • A lambda expression can be assigned to a functional interface variable.

    Why this is correct

    True: A lambda can be assigned to a functional interface variable because it provides an implementation for the single abstract method.

  • A lambda expression can access final or effectively final local variables.

    Why this is correct

    True: Lambdas can access local variables that are final or effectively final from the enclosing scope.

  • A lambda expression can be used to implement multiple abstract methods.

    Why it's wrong here

    False: A lambda can only implement one abstract method, not multiple.

  • A lambda expression can be used to create an instance of an abstract class.

    Why it's wrong here

    False: Lambdas cannot create instances of abstract classes; they work only with functional interfaces.

Quick reference

Cloud Service Model Comparison

ModelYou ManageProvider ManagesExamples
IaaSOS, runtime, apps, dataHardware, hypervisor, networkingEC2, Azure VMs, GCP Compute Engine
PaaSApps and dataOS, runtime, middleware, hardwareElastic Beanstalk, Azure App Service
SaaSData and settings onlyEverything elseMicrosoft 365, Salesforce, Workday
FaaS / ServerlessFunction code onlyInfra, scaling, runtimeLambda, Azure Functions, Cloud Run
CaaSContainers and appsKubernetes, OS, hardwareEKS, AKS, GKE

About these practice questions

This 1Z0-829 question is part of Courseiva's 513-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This 1Z0-829 practice question is part of Courseiva's free Oracle certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the 1Z0-829 exam.