Java 8 refers to the newest version of the Java platform.

learn more… | top users | synonyms

0
votes
3answers
82 views

Cyclic dependency in this project design

I have 2 modules (containing multiple classes). Let's call them Module A and Module B. Module B has a dependency on Module A: Module B -> Module A. Now, I have created an utility class C, which A ...
1
vote
1answer
232 views

Is it OK to do IO inside java 8 streams?

Example to question in title: List<UUID> ids = dao1.getContactsOfUser(userId); List<String> contact_names = ids.stream .map(uid -> dao2.getContactByUid(uid)) //is it ok? ...
1
vote
0answers
54 views

Can't figure out how to parallelize the calculation of the amount of offspring expected for species in genetic algorithm

I developed a genetic algorithm in java 8 taking advantage of its reasonably free parallelism opportunities with Streams. As you are likely aware, running the epochs takes its time for even a test ...
-3
votes
0answers
55 views

what is the best way to use PreparedStatement on Java 8?

I am learning java and was wondering the benefits of using Java 8's new features against JDBC and was wondering if there is any benefit of using Streams with ResultSets? I would also like to see an ...