Get Time Stamp
In the example given below we will learn how to display current time. getTime() method returns the number of milliseconds represented by Date object that will be used as argument to create object of java.sql.Time class.
Get Class Name
In the example given below we will learn how to get name of the particular class with package name. getName() method returns fully qualified name of the particular class in string format.