Everytime FutureContent.future is called why will a new MyFuture class not be created and assigned to future ?
FutureContent.future
public class FutureContent {
public static MyFuture future = new MyFuture();
}
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You don’t “call”
FutureContent.future, you reference it.It’s initialized once, at class load time; there’s no need to initialize it again. That’s what the
staticpart means (broadly).