The best way to study has been shown to have a specific place you use for studying regularly and not for fun. I used our kitchen table all the time so I could have some sunlight but could not play on the computer. Interweb FTL
Personally though, you have to find out your own way of learning. Some people learn by listening, some by seeing, and some by doing. There's lots of ways to learn, but a combination of them will change the way you retain. I found that my personal way to learn was to
1) Read before the class (right before, such as the night before an AM or after lunch for PM) then
2) Listen and only take important notes, not notes that are in the book or examples worked in the book, then
3) Make my own notes that same day from the reading and listening comprehension
Usually if I did these 3 steps, I would retain enough that just looking over the notes the night before an exam kept me clear and my grades went waaay waaay up. Before I had been taking tons of notes in class, doing homework the night before, and then cramming the day before an exam and my grades were low. I spent less time making my own notes and reading then I did cramming, and got more out of it.
You will have to experiment, but if you do different things you should be able to see which ones actually affect your learning and retention.