Step 1: Understanding the Concept:
Methylamine \( \mathrm{CH_3NH_2} \) is a primary aliphatic amine with one carbon atom. We must find the reaction that gives a primary amine with one carbon less than the starting compound, since methylamine is the smallest such amine from a carbon chain.
Step 2: Key Formula or Approach:
Hoffmann bromamide degradation converts a primary amide into a primary amine that has one carbon atom less. Ethanamide (acetamide) is treated with bromine and aqueous sodium hydroxide:
\[ \mathrm{CH_3CONH_2 + Br_2 + 4NaOH \rightarrow CH_3NH_2 + Na_2CO_3 + 2NaBr + 2H_2O} \]
Step 3: Apply it:
Acetamide has two carbon atoms. The carbonyl carbon is lost as carbonate, so the product has one carbon, which is methanamine (methylamine). So methylamine is prepared by the Hoffmann bromamide reaction.
Step 4: Why the other options are wrong:
Wurtz reaction joins two alkyl halides with sodium to give an alkane, for example ethane from \( \mathrm{CH_3Br} \). It does not give an amine.
Friedel-Crafts reaction attaches an alkyl or acyl group to a benzene ring. It does not make amines.
Kolbe's reaction treats sodium phenoxide with carbon dioxide to give salicylic acid. It does not give an amine.
So option (2) is correct.
Final Answer:
Methylamine is prepared by the Hoffmann bromamide reaction. This is option (2).
\[ \boxed{\text{Hoffmann bromamide reaction}} \]