Home / CSE MCQs / Java 8 ::

CSE MCQs :: Java 8

  1. Which is aggregate operation in Java 8
  2. A.
    filter
    B.
    map
    C.
    forEach
    D.
    All

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. Given a class named student, which of the following is a valid constructor declaration for the class?
  4. A.
    Student (student s) { }
    B.
    Student student ( ) { }
    C.
    Private final student ( ) { }
    D.
    Void student ( ) { }

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. Functional interfaces can be annotated as
  6. A.
    Function
    B.
    FunctionalInterface
    C.
    Functional
    D.
    Interface

    View Answer

    Workspace

    Discuss Discuss in Forum