About the Author
I'm Kshittiz Kumar, a senior software engineer with more than nine years of experience building distributed systems, data platforms and cloud services.
Java was my first programming language. I met it in grade 7, in the BlueJ editor, writing small programs whose only job was to print something to the screen and make me feel like a magician when they did. A few years later, in grades 11 and 12, I learned C++, and with it pointers, manual memory management and a new respect for what Java had been quietly doing for me.
In 2013, during my bachelor's degree, I took a year-long course on Java that went far deeper than anything before it. It didn't stop at syntax. It opened up the JVM: how a class is loaded and verified, why main must be static, what really happens when you cast 130 to a byte, why a finally block can override a return. I filled almost two hundred handwritten pages with rules, diagrams and interview questions. Java 7 was the current release.
Those notes went with me into my first job, where I built Java and JEE applications. Since then I've written production code in C, C++, C# and Go. But I kept coming back to Java, for personal projects and for the pleasure of it. Every language teaches you something; Java was the one I loved first, and the one I still enjoy most.
Years later I opened that old notebook again, and two things struck me. The fundamentals had aged remarkably well: the JVM still loads, verifies and JIT-compiles classes much as my notes described. But almost everything around those fundamentals had changed. Java now has lambdas and streams, var, records, sealed types, pattern matching and virtual threads, and a complete program can be a single line. Twenty releases had shipped since the one I learned.
This book is my tribute to the language, and my attempt to connect the Java I learned with the Java we write today.
Find me online
- LinkedIn: linkedin.com/in/kshittiz-kumar
- GitHub: github.com/kshittiz
Questions and corrections are welcome as issues on the book's GitHub repository.