Answer :

Both generators and batteries both convert a form of energy into electrical energy. In a battery, a chemical reaction takes place which converts chemical energy into electrical energy. In a generator however, many times mechanical energy is being converted into electrical energy. A process called electromagnetic induction can take place in some generator which is where an electromagnet is used to help conduct electricity. hope this helped!!!