The moose likes Threads and Synchronization and the fly likes Is Java 7 teaching us how to predict the future? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Threads and Synchronization
Reply locked New topic

Is Java 7 teaching us how to predict the future?

Tawi Oei
Ranch Hand

Joined: Dec 16, 2012
Posts: 95
Can any folks tell me? Is this Java correct? How to implement them anyways?
Jayesh A Lalwani
Saloon Keeper

Joined: Jan 17, 2008
Posts: 2746

The Future!! The FUTURE!!!

I don't know if this post is referring to java.util.concurrent.Future or using statistical techniques to make projections. Since, I'm a show off, I'll talk about both

java.util.concurrent.Future represents the results of a background operation. WHen you start a job in the background using the Executor, the Executor returns a Future object that encapsulates the result of the background job. The result won;t be available until the background job is completely. It's not telling the future. It;s just a place holder for results that will be available after some time

We are actually getting very good at predicting the future in some cases. As the great Hari Seldon said "the behaviour of a mass of people is predictable if the quantity of this mass is very large". We did actually predict the future when the 509 blog predicted Obama's win in the elections with uncanny accuracy. They basically use statistical analysis techniques to identify variables that can predict how people vote, then used Monte Carlo analyses to make a prediction about the election. It was terrifyingly accurate, and outperformed human predictions. So, yes, in many ways, technology is helping us predict the future, and I am pretty sure Java has a big role to play with it.
I agree. Here's the link:
subject: Is Java 7 teaching us how to predict the future?
It's not a secret anymore!