I am beginner in java.so,I red some books online.In between all this books I liked Introduction to Programming Using Java, Sixth Edition Author: David J. Eck this book.If you want to read it free online then used this link
.This book contains all basic knowledge about programming environment.
I hope it will help you in your journey.....
have a nice day!!!