Swearing in public is generally frowned upon in China, especially in front of elders, strangers, or in formal settings, where it can make you seem rude or poorly raised. Among close friends or in heated moments it does happen, but many people still avoid overt profanity in mixed company and may use milder slang or joking insults instead.