while going thru this article:
I saw the sentence — ForkJoinPool is not a part of the public contract — What does this mean exactly.
As per my understanding ForkJoinPool is a public class with public methods in it.so it is a part of the public contract. But the above article says that ForkJoinPool is not a part of the public contract. Please clarify
The word “public” which you seem to be focusing on is not really concerned with the
public keyword from the Java language. In the context of the post you are referring to it means that Java streams internally depend on ForkJoin pool. However, it is an implementation detail and there is no guarantee that it will continue to be like that. In other words it is not part of the contract made between the language users (genral public like you) and language implementers.