I've always studied at home, everytime I had an exam or homework to do I did everything at home. Some of my friends always went to the library and I though 'why going to the library when you can stay at home?' Well, now I know why.
When I was on 2º of Bachillerato I was always really stressed and everytime I had to study at home I found a different problem: the neighbors are playing music too loud, or if I'm too tired I want to rest at the sofa... so I said 'let's go to the library', and only the first day I realised too many differences.
Something that I like about it is that I study so much more than at home, I think it's because I see everybody studying and I feel the pressure to do it too. Another thing is that everybody is quiet and I can concentrate better, and at home I get distracted by television, my cute dog or whatever. But something that is just a little problem is that library opens and closes at a certain hour and at home I can be studying until the hour I want.
But honestly, after these differences, I prefer library, but obviously I will study at home when I don't have another choice.