What's the difference between an export and imp?

In reply to dave_59:

Hi dave_59,

This is Lakshman Kumar. Can You explain the difference between export & imp with example. I know that difference is for imp, we have to write code separtely & for export we don’t need write any logic. is it write??

And also explain where we will use imp??