Pracheth Gandrakota wrote:Can anyone recommend a good textbook for java basics?
Well, there's no single book, and the answer depends on your competency/experience.
If Java(not 'java') is your first programming language, then Head First Java by Sierra might help you.
If Java is your first object oriented programming language(but you know other procedural language like C and concepts like loop etc.), then Thinking in Java by Eckel or The Java Programming Language by Gosling (creator of Java) might be nice for you.
If you've already worked with some other OO language like C++ and know what class, object, inheritance,
polymorphism etc. is, then look no further than Core Java (yes, that is name of the book
) Volume I & II by Horstmann & Cornell. At this stage, you can also go through official Java Language Specifications.
I hope this helps.