KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I know this may be an obvious question, but I am looking at this code: private Date lastActivity = new Date(-1); And am curious what this does - the Date class has six different constructors, and only one can take a single argument of long , like so: public Date(long date) which: Allocates a Date object and initializes it to represent the specified number of milliseconds since the standard base time known as "the epoch", namely January 1, 1970, 00:00:00 GMT. So is -1 just a placeholder? I appreciate any tips or advice.
Tags (comma-separated)
Save Edits
Cancel