Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8897853
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T00:27:25+00:00 2026-06-15T00:27:25+00:00

Does Java 7 have functional programming support or I still need to use FunctionalJava

  • 0

Does Java 7 have functional programming support or I still need to use FunctionalJava or another lib? I thought is has support to this, but didn’t find much info about it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T00:27:26+00:00Added an answer on June 15, 2026 at 12:27 am

    It would depend on your definition of Functional Programming.

    In any case, the answer to your question would be No. Lambdas were due to appear in Java7 at one point but they will appear only in Java8. It looks like with Java8 you’ll be able to do a lot with the new lambda notation in conjunction with the regular JDK8 class libraries (collections in particular) before you need something like FunctionalJava, but that sort of depends on how much you want to do. A lot of OO folk will be very happy with just a flavor of FP – a common example is collections with map, filter etc. That by itself would no doubt move Java closer to FP – and might just be FP enough for you.

    The question is, even then, would that allow true (even if ‘impure’) functional programming in Java? Yes, and No. Yes, because any language with lexical closures and a lambda notation could in theory be enough. No, because FP as supported by languages Haskell, F#, OCAML and Scala would still be impractical.

    Some examples:

    1. The lack of Algebraic Data Types – these are regarded as a key component of the
      statically typed family of FP languages, and go especially well with many FP idioms.
    2. While not exactly a requirement for FP, nearly all statically typed FP languages feature
      some form of type inference.
    3. Statements need to behave like expressions for a lot of Functional Programming
      idioms to be convenient – if, try, etc need to return a value.
    4. Enforcement (as in Haskell), or the encouraging (as in Scala) of
      single assignment as well as immutability, and a useful collection
      of data structures and libraries to that end.

    Other languages like Lisp/Scheme or Erlang are also considered Functional; but in a less strict sense; the requirements (1), and (2) do not apply because they are dynamically typed to begin with.

    One can say then, that Javascript is about as functional as Lisp (impure dynamic functional language), because Javascript has always had lambdas and first-class functions. But Java being in the statically typed family, does not fare any better (than Javascript) and certainly not as well as the existing statically typed FP languages.

    Regarding (4. (Immutable/Side-effect free)), it appears that in JDK8, the existing mutable classes will be retrofitted with lambda-consuming methods, so that’s something that will (at least for a while) limit how far you can take FP paradigms in Java8.

    I found these links very useful – I haven’t been following up for a while though, so I’m not sure if they are the best/latest info regarding this. But worth reading:

    http://cr.openjdk.java.net/~briangoetz/lambda/lambda-state-final.html

    http://cr.openjdk.java.net/~briangoetz/lambda/collections-overview.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Why does Java not have a file copy method? This seems like such an
Question:- Does java client need to worry about multiple servers ? Meaning:- I have
Does the Java standard library have any functional data structures, like immutable Sets, Lists,
Does Java have an equivalent to .NET resource (.resx) files for localization? In .NET,
Does java have an equivalent operator or language construct as the verbatim operator(@) in
Does Java have a built-in Antivirus? One of my friends told me there is
Does Java have (or is there a library available) that allows me to have
Why does Java have transient fields?
Is there a reason why java does not have a class which allows both
Since JavaScript is not derived from Java, why does it have Java in the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.