Echoing what others have said, there are basic concepts of Java that haven't changed in Java 8.
However, if you want to get a good book that discusses the
new features introduced in Java 8 namely, lambda expressions, functional interfaces, method references, streams and parallel processing, default methods, and functional style programming, I would recommend
Java 8 in Action from Manning.
This is
not a book for absolute beginners in Java.
You should already know Java, especially anonymous classes. It's not an easy read because the new features I mentioned are not that easy to understand but the authors have a very approachable and direct style despite two of them having backgrounds in academics. There are also plenty of code examples to help you understand the material better.