The question is valid, though the example is bad. Consider the following cases:
cron1 = "* * * * MON"//unix
cron2 = "*/1 * * * 1"//unix
cron3= "0 * * * *"//unix
cron4="0 * * * * MON *"//quartz
//now we compare crons
cron1.equivalent(cron2) -> true
cron1.equivalent(cron3) -> false
cron1.equivalent(cron4) -> true
If you are looking for some library that would allow you to perform such comparisons, have a look at cron-utils
After parsing a cron expression, will create a Cron object, which has a method to compare crons.