Hydrolysis of an ester gives a carboxylic acid which on Kolbe's electrolysis yields ethane. The ester is ––––––––.
A. ethyl methanoate
B. methyl ethanoate
C. propylamine
D. ethylamine