public class
test {
public static void main(
String arg[])
{
Math m=new Math();
System.out.println("m.round="+m.round(100.00));
}
}
when compile the code ,the code give me a compile error:there isn't a construcor in class Math,but I look up in the jdk-doc,the Math is subclass of the class Object,the Object have a no-arg constructor : public Object()
,which mean that when instance the Math class,it will invoke the super class(Class)'s no-arg constructor : public Object().
If i am right about the question,how can I explain this.