I knew some basics of
java but i still want to start from scratch.I want to know how things happens and why they happens in java. So, i do some search over internet and came up with these two books.
1.Core java fundamentals 8th edition by david and horstman
2.Head first java
suggest me which one to follow because i want to make my basics strong and also programming experiences like case study and other examples