looks like some Java code to me than some pseudocode.In that case ur answers will be:
1.Yes.In that case line 15 would not exist and line 16 would have been:
| Code: |
| alarmTime = new Date((new Date()).getTime()+delta) ; |
2.If you would have created the object instance "now" then after line 18 "now" is no longer referenced.Garbage collector runs periodically, frees dynamically allocated memory that is no longer referenced. So "now" will be destroyed whenever garbage collector finds it not referenced.