Can you instantiate the Math class?

Ads

 
 

Share on Google+Share on Google+

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

Can you create object of Math class?

Thanks
Ads
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

Ads









Ads

 
Advertisement null

Ads