Question: What is the difference. Were are the used in physics?

Answer: 
A line integral is an integral where the function to be integrated is evaluated along a curve.[![Image Source: https://en.wikipedia.org/wiki/File:Line_integral_of_scalar_field.gif](https://i.stack.imgur.com/kWBC1.gif)](https://i.stack.imgur.com/kWBC1.gif)

On the other hand a surface integral is an integral where the function to be integrated is evaluated along a surface.

[![enter image description here](https://i.stack.imgur.com/dEwi0.gif)](https://i.stack.imgur.com/dEwi0.gif)

There are many uses of line and surface integral in Physics I would highly recommend you to read this on math.libretexts.org

<https://math.libretexts.org/Bookshelves/Calculus/Book%3A_Vector_Calculus_(Corral)/04%3A_Line_and_Surface_Integrals>
[Line Integral](https://en.wikipedia.org/wiki/Integral) gives **area** under the line (which may be of any shape) and [surface integral](https://en.wikipedia.org/wiki/Surface_integral) gives **volume** in a same way.

So in physics it's used whenever the shape is odd, and we want to find area or volume of the object with high accuracy.

Check out above mentioned wikipedia links for more details.