Feature in java which is no longer available in java 8
What are the main features which are no longer available from java 8 onwards
java
|
show 2 more comments
What are the main features which are no longer available from java 8 onwards
java
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
|
show 2 more comments
What are the main features which are no longer available from java 8 onwards
java
What are the main features which are no longer available from java 8 onwards
java
java
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
|
show 2 more comments
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
|
show 2 more comments
1 Answer
1
active
oldest
votes
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)
andretainAll(Collection)
would
silently ignore anull
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.
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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)
andretainAll(Collection)
would
silently ignore anull
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.
add a comment |
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)
andretainAll(Collection)
would
silently ignore anull
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.
add a comment |
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)
andretainAll(Collection)
would
silently ignore anull
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.
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)
andretainAll(Collection)
would
silently ignore anull
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.
edited Aug 17 '18 at 20:04
answered Aug 17 '18 at 9:55
ArnaudArnaud
13.7k21730
13.7k21730
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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