Thread: java.lang.Math
View Single Post
  #1 (permalink)  
Old 01-31-2008, 04:41 PM
eva eva is offline
Member
 
Join Date: Dec 2007
Posts: 49
eva is on a distinguished road
java.lang.Math
java.lang.Math is not an Abstract class. So, we should be allowed to makes its instance. When I try to do so, I get an error:

Code:
Math obj = new Math(); Exception in thread "main" java.lang.Error: Unresolved compilation problem: The constructor Math() is not visible
Why it is so?

- PEACE
Reply With Quote
Sponsored Links