In general, exposure of the head, upper chest, and limbs is legal, and considered socially acceptable except among certain religious communities.

is it legal to wear boxers in public?
yes