Can you instantiate the Math class?

Ads
 

Can you instantiate the Math class?

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

Ads









Related Tutorials/Questions & Answers:
Can we instantiate abstract class in Java?
ModuleNotFoundError: No module named 'classh'
Advertisements
ModuleNotFoundError: No module named 'classh'
can you explain ?
Please can you help
Can you correct this codes?
Can you help me with applet?
Can you create an object of an abstract class?
ModuleNotFoundError: No module named 'can-you-guess'
how can you say java is secure
Can you provide me Hibernate configuration tutorial?
How many qusetions can you ask?
Can you tell me how it worked?
Hey neighbor, can you lend some Hammers?
Hey neighbor, can you lend some Hammers?
can you check below code if any erors
ModuleNotFoundError: No module named 'Classy'
org.hibernate.MappingException: could not instantiate id generator
org.hibernate.MappingException: could not instantiate id generator
org.hibernate.MappingException: could not instantiate id generator
org.hibernate.MappingException: could not instantiate id generator
Can you suggest any good book to learn struts
Can you give few examples of final classes defined in Java API?
Can you give me Hibernate one to one example?
Can you give me a simple Hibernate Sessionfactory example?
Can you give me some good factory pattern examples?
How can you add elements of two arrayLists in java?
How can you handle form in Spring 3.2 MVC?
ModuleNotFoundError: No module named 'behave-classy'
ModuleNotFoundError: No module named 'behave-classy'
ModuleNotFoundError: No module named 'classy-vision'

Ads