(a) A commissioned officer may be honorably discharged: (1) Upon tender of resignation; (2) Upon disbandment of the organization to which he belongs; or (3) Upon report of a board of examination, or for failure to appear before such board when ordered. (b) He may be dismissed upon the sentence of a court-martial, or conviction in a court of justice of an infamous offense.