which of the following is an example of potential energy?

A.The energy a baseball has because of its motion

B.The energy a spring has by being compressed

C.The energy an object gains by increasing its temperature

D.The energy of an electromagnetic ​