Depends on whether the author of the exam was mentally making a special case out of the "private static" cases.
Mock exams are only as good as the author. Even the big time
Java books have errata tracking to clean up little inconsistancies like that.