The study of electric charges at rest is known as Electrostatics. Like charges attract and unlike charges repel. A neutral body can be charged by friction, conduction, and induction. Earthing which is also known as grounding can prevent from electric shock.
Good Evening
Hope it helps