Question on value of digits

I'm going to build a mini calculator that does multiplication, subtration and addition. Now, when I ask the user for a value of course the number can be very small or very large in size. Now my questions is that when I do an operation on these vales to get a new value with Java be able to hanldle a number that is very large in size or do I have to do some bit manipulation to handle and calculate the number. For example if the user puts in 1000000 * 45645554 and I get an answer with a operation function that I make will that be hard for Java to compute and if so what is the best way to go about coming up with a solution for this. Example of this would be great for me.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

I would check by creating a BigInteger from an entered String and then ascertain if > Long.MAX_VALUE. If so, you can't handle the calc with primitives
Another non-fatal approach would be to use double, as numbers can be allowed to get very large if integral, and if not, the worst that can happen is loss of precision

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
DancingFighterGAuthor Commented:
Thanks man!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.