Feature in java which is no longer available in java 8












-1















What are the main features which are no longer available from java 8 onwards










share|improve this question




















  • 1





    Java is built to be backwards compatible

    – shinjw
    Aug 17 '18 at 9:49






  • 4





    @shinjw While this is the goal, this rule was broken few times for instance "abc".split("") gives different results in Java 7 and Java 8 (more info at: Why in Java 8 split sometimes removes empty strings at start of result array?)

    – Pshemo
    Aug 17 '18 at 9:54













  • Is this your homework? You seem to be treating Stack Overflow like a free programming service. That's not what it's for.

    – Dawood ibn Kareem
    Aug 17 '18 at 9:59






  • 4





    @GreeshmaVSNair "stackoverflow is a platform to help each other" close but not entirely correct. New people often are misunderstanding goal of this site. They think we are here to help them specifically. That is NOT the truth. This site was created to be repository of programming questions and answers which can help many people, not just asker. Helping asker is additional effect, but because of that misconception askers incorrectly think that they are entitled to get answers for any programming question just because it is about programming, regardless of its quality.

    – Pshemo
    Aug 17 '18 at 10:40






  • 1





    (BTW I am not saying that this question doesn't fit here)

    – Pshemo
    Aug 17 '18 at 10:40
















-1















What are the main features which are no longer available from java 8 onwards










share|improve this question




















  • 1





    Java is built to be backwards compatible

    – shinjw
    Aug 17 '18 at 9:49






  • 4





    @shinjw While this is the goal, this rule was broken few times for instance "abc".split("") gives different results in Java 7 and Java 8 (more info at: Why in Java 8 split sometimes removes empty strings at start of result array?)

    – Pshemo
    Aug 17 '18 at 9:54













  • Is this your homework? You seem to be treating Stack Overflow like a free programming service. That's not what it's for.

    – Dawood ibn Kareem
    Aug 17 '18 at 9:59






  • 4





    @GreeshmaVSNair "stackoverflow is a platform to help each other" close but not entirely correct. New people often are misunderstanding goal of this site. They think we are here to help them specifically. That is NOT the truth. This site was created to be repository of programming questions and answers which can help many people, not just asker. Helping asker is additional effect, but because of that misconception askers incorrectly think that they are entitled to get answers for any programming question just because it is about programming, regardless of its quality.

    – Pshemo
    Aug 17 '18 at 10:40






  • 1





    (BTW I am not saying that this question doesn't fit here)

    – Pshemo
    Aug 17 '18 at 10:40














-1












-1








-1








What are the main features which are no longer available from java 8 onwards










share|improve this question
















What are the main features which are no longer available from java 8 onwards







java






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 18 at 7:09







Greeshma

















asked Aug 17 '18 at 9:45









GreeshmaGreeshma

2017




2017








  • 1





    Java is built to be backwards compatible

    – shinjw
    Aug 17 '18 at 9:49






  • 4





    @shinjw While this is the goal, this rule was broken few times for instance "abc".split("") gives different results in Java 7 and Java 8 (more info at: Why in Java 8 split sometimes removes empty strings at start of result array?)

    – Pshemo
    Aug 17 '18 at 9:54













  • Is this your homework? You seem to be treating Stack Overflow like a free programming service. That's not what it's for.

    – Dawood ibn Kareem
    Aug 17 '18 at 9:59






  • 4





    @GreeshmaVSNair "stackoverflow is a platform to help each other" close but not entirely correct. New people often are misunderstanding goal of this site. They think we are here to help them specifically. That is NOT the truth. This site was created to be repository of programming questions and answers which can help many people, not just asker. Helping asker is additional effect, but because of that misconception askers incorrectly think that they are entitled to get answers for any programming question just because it is about programming, regardless of its quality.

    – Pshemo
    Aug 17 '18 at 10:40






  • 1





    (BTW I am not saying that this question doesn't fit here)

    – Pshemo
    Aug 17 '18 at 10:40














  • 1





    Java is built to be backwards compatible

    – shinjw
    Aug 17 '18 at 9:49






  • 4





    @shinjw While this is the goal, this rule was broken few times for instance "abc".split("") gives different results in Java 7 and Java 8 (more info at: Why in Java 8 split sometimes removes empty strings at start of result array?)

    – Pshemo
    Aug 17 '18 at 9:54













  • Is this your homework? You seem to be treating Stack Overflow like a free programming service. That's not what it's for.

    – Dawood ibn Kareem
    Aug 17 '18 at 9:59






  • 4





    @GreeshmaVSNair "stackoverflow is a platform to help each other" close but not entirely correct. New people often are misunderstanding goal of this site. They think we are here to help them specifically. That is NOT the truth. This site was created to be repository of programming questions and answers which can help many people, not just asker. Helping asker is additional effect, but because of that misconception askers incorrectly think that they are entitled to get answers for any programming question just because it is about programming, regardless of its quality.

    – Pshemo
    Aug 17 '18 at 10:40






  • 1





    (BTW I am not saying that this question doesn't fit here)

    – Pshemo
    Aug 17 '18 at 10:40








1




1





Java is built to be backwards compatible

– shinjw
Aug 17 '18 at 9:49





Java is built to be backwards compatible

– shinjw
Aug 17 '18 at 9:49




4




4





@shinjw While this is the goal, this rule was broken few times for instance "abc".split("") gives different results in Java 7 and Java 8 (more info at: Why in Java 8 split sometimes removes empty strings at start of result array?)

– Pshemo
Aug 17 '18 at 9:54







@shinjw While this is the goal, this rule was broken few times for instance "abc".split("") gives different results in Java 7 and Java 8 (more info at: Why in Java 8 split sometimes removes empty strings at start of result array?)

– Pshemo
Aug 17 '18 at 9:54















Is this your homework? You seem to be treating Stack Overflow like a free programming service. That's not what it's for.

– Dawood ibn Kareem
Aug 17 '18 at 9:59





Is this your homework? You seem to be treating Stack Overflow like a free programming service. That's not what it's for.

– Dawood ibn Kareem
Aug 17 '18 at 9:59




4




4





@GreeshmaVSNair "stackoverflow is a platform to help each other" close but not entirely correct. New people often are misunderstanding goal of this site. They think we are here to help them specifically. That is NOT the truth. This site was created to be repository of programming questions and answers which can help many people, not just asker. Helping asker is additional effect, but because of that misconception askers incorrectly think that they are entitled to get answers for any programming question just because it is about programming, regardless of its quality.

– Pshemo
Aug 17 '18 at 10:40





@GreeshmaVSNair "stackoverflow is a platform to help each other" close but not entirely correct. New people often are misunderstanding goal of this site. They think we are here to help them specifically. That is NOT the truth. This site was created to be repository of programming questions and answers which can help many people, not just asker. Helping asker is additional effect, but because of that misconception askers incorrectly think that they are entitled to get answers for any programming question just because it is about programming, regardless of its quality.

– Pshemo
Aug 17 '18 at 10:40




1




1





(BTW I am not saying that this question doesn't fit here)

– Pshemo
Aug 17 '18 at 10:40





(BTW I am not saying that this question doesn't fit here)

– Pshemo
Aug 17 '18 at 10:40












1 Answer
1






active

oldest

votes


















10














See here : Compatibility Guide for JDK 8 .



Among the Incompatibilities between Java SE 8 and Java SE 7 :




In previous releases, some implementations of
Collection.removeAll(Collection) and retainAll(Collection) would
silently ignore a null parameter if the collection itself was empty.
As of this release, collections will consistently throw a
NullPointerException if null is provided as a parameter.




So your program could simply contain :



    List<String> list = new ArrayList<>();

list.removeAll(null);


It will work in Java 7 , not in Java 8 .



This is one example, if you get through the above link, you will find several other ways to have such an incompatible program.






share|improve this answer

























    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f51892657%2ffeature-in-java-which-is-no-longer-available-in-java-8%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    10














    See here : Compatibility Guide for JDK 8 .



    Among the Incompatibilities between Java SE 8 and Java SE 7 :




    In previous releases, some implementations of
    Collection.removeAll(Collection) and retainAll(Collection) would
    silently ignore a null parameter if the collection itself was empty.
    As of this release, collections will consistently throw a
    NullPointerException if null is provided as a parameter.




    So your program could simply contain :



        List<String> list = new ArrayList<>();

    list.removeAll(null);


    It will work in Java 7 , not in Java 8 .



    This is one example, if you get through the above link, you will find several other ways to have such an incompatible program.






    share|improve this answer






























      10














      See here : Compatibility Guide for JDK 8 .



      Among the Incompatibilities between Java SE 8 and Java SE 7 :




      In previous releases, some implementations of
      Collection.removeAll(Collection) and retainAll(Collection) would
      silently ignore a null parameter if the collection itself was empty.
      As of this release, collections will consistently throw a
      NullPointerException if null is provided as a parameter.




      So your program could simply contain :



          List<String> list = new ArrayList<>();

      list.removeAll(null);


      It will work in Java 7 , not in Java 8 .



      This is one example, if you get through the above link, you will find several other ways to have such an incompatible program.






      share|improve this answer




























        10












        10








        10







        See here : Compatibility Guide for JDK 8 .



        Among the Incompatibilities between Java SE 8 and Java SE 7 :




        In previous releases, some implementations of
        Collection.removeAll(Collection) and retainAll(Collection) would
        silently ignore a null parameter if the collection itself was empty.
        As of this release, collections will consistently throw a
        NullPointerException if null is provided as a parameter.




        So your program could simply contain :



            List<String> list = new ArrayList<>();

        list.removeAll(null);


        It will work in Java 7 , not in Java 8 .



        This is one example, if you get through the above link, you will find several other ways to have such an incompatible program.






        share|improve this answer















        See here : Compatibility Guide for JDK 8 .



        Among the Incompatibilities between Java SE 8 and Java SE 7 :




        In previous releases, some implementations of
        Collection.removeAll(Collection) and retainAll(Collection) would
        silently ignore a null parameter if the collection itself was empty.
        As of this release, collections will consistently throw a
        NullPointerException if null is provided as a parameter.




        So your program could simply contain :



            List<String> list = new ArrayList<>();

        list.removeAll(null);


        It will work in Java 7 , not in Java 8 .



        This is one example, if you get through the above link, you will find several other ways to have such an incompatible program.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Aug 17 '18 at 20:04

























        answered Aug 17 '18 at 9:55









        ArnaudArnaud

        13.7k21730




        13.7k21730
































            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f51892657%2ffeature-in-java-which-is-no-longer-available-in-java-8%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks

            Calculate evaluation metrics using cross_val_predict sklearn

            Insert data from modal to MySQL (multiple modal on website)