In reply to puranik.sunil@tcs.com:
When used on the left side, i.e. static task incr();, task declared is static and associated with the particular class and not with the instance of the class.
Hi puranik.sunil, can you please give me some examples of the benefits of using a “static task” vs. just a regular “task”? Is it the only purpose to be able to call a task in a class without instantiating an object?