Lecture 9
7
Static tools in the library
•To invoke a static method, send a message to the class (there is no object) - syntax ClassName.methodName( args )
•Math.sqrt( x )
•Calendar.getInstance()
–a factory method -Java designers chose this rather than                                 new Calendar
•UnitTest.java line 21: HLine.main(args) sends message to HLine class to run main() there