Home Answers Viewqa Java-Beginners Can you instantiate the Math class?

 
 


Deepak Kumar
Can you instantiate the Math class?
1 Answer(s)      2 years and 7 months ago
Posted in : Java Beginners

Hi,

Can you create object of Math class?

Thanks
View Answers

October 5, 2010 at 3:43 PM


Hi,

All the methods in Math class is static. The constructor is not public in the Math class. So, we can't create the object of Math class.

Thanks









Related Pages:

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.