You can check detailed Explanation in below link
 
https://sharepoint.stackexchange.com/questions/52075/difference-between-webpart-visual-web-part