From Java to be used in (Scientific) Computing Part II: Java Language and Object-Oriented Concepts Basic Simulation Track for Computational Science CPS615 -- Fall Semester 97. byNancy J. McCracken,Geoffrey C. Fox
This declares object today to have type class
Date today
Date() is Constructor of Date class which constructs an instance of Date class and sets default value to be the current date
new Date()
An example application using a method of the Date class: