I see uses of depreacted members in
java.math.BigInteger.bitCount()
Is there an alternative for the same or we dont need it? since the values is being computed if not initialized.
Just wanted to confirm my assertion?
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.
No, you don’t need an alternative, it works fine and will continue to do so (some when in the future it will get rid of its deprecated parts but that should not be your concern.)
The deprecated code in there is used to let other JDK Developers know that they SHALL NOT use the variable bitCount but use the method bitCount() instead.