Nah, I think they were in successive years, with Adam's beating the record for longest No. 1.
If they'd been in the same year then over half the year would have been taking up with two songs at no. 1
Edit: Just checked and WWW was 1994, BA was 1991. So not sure why I thought Adam's had beaten...