I'm doing automation on data fetching using Java , which approach is better for task automation? Linux cronjob or Java Timer? 

for example the tasks to execute hourly, first day of week, first day of month, thanks in advance.