Just to add to this.
Delta=0 within a midi file (i.e. NOT at the start) would mean that no time has elapsed since the previous event. BUT, the previous event MIGHT be relevant, so you should show it to validate the data overall.
I would expect in Example 1 that the two Note On events, both at the same delta time, would in effect be one Note On, but this would depend on the instrument playing the sound which COULD cause the second ON to modify the first ON. But this is unlikely. Then, the Note OFF 480 ticks later SHOULD turn OFF the note that is ON but then it MIGHT turn OFF One of the Notes and leave the other ON. On the basis of the Midi spec it should NOT do this, but a specific device MIGHT do this.
Midi events like this should be avoided as this could cause problems. It is CERTAINLY confusing, both for us humans, and maybe for certain midi devices.
Regarding Example 2. the ON immed followed by the OFF Might or might NOT make any sound at all, depending on the midi device receiving the data, and depending on the envelope of the sound being used. The later on, then delta time then OFF would appear perfectly normal.
Many systems that enable the playing of data from a midi file would have an option to display the data as an Event List, such a display would often include the option to modify and/or delete specific events. This would allow you to remove such events if they are not needed, and then save the changed midi file.
I would be interested to see this midi file. Could you attach it (you need to 'zip' it first). Or at least give the name of the file, and the site you got it from. It would be interesting to see what other oddities there are in the file. The file you downloaded could well be a badly edited/modified version of a previously OK file?
Geoff