Learn Java

Learn Java news, information, and how-to advice

anglers loop
hopscotch

speech bubble

Java 101: Deciding and iterating with Java statements

Learn how to use statements like if, if-else, switch, and while to specify expressions, make decisions, and iterate in your Java programs.

operators

Java 101: Evaluate Java expressions with operators

Continue learning the fundamentals of Java programming, with this Java 101 introduction to using operators to write compound Java expressions.

NIO.2 Cookbook, Part 3

Leverage file-visitor, glob/pathmatcher, and directory-watcher features for advanced tasks in NIO.2.

building blocks

Java 101: Elementary Java language features

Learn three ways to document your code and find out why Unicode is the universal encoding standard for Java, then practice using identifiers, types, literals, and variables in your Java programs. All examples are written in Java 8.

stack of books

Java 101: Learn Java from the ground up

If you're new to Java then you've come to the right place: Get started with the foundations of the Java platform and code your first Java application with this classic tutorial for beginners.

magental tinted image of worker at laptop computer 91910925

Stack Overflow survey: Nearly half of developers are self-taught

Stack Overflow Developer Survey finds 48 percent of respondents never received a degree in computer science.

Photo collage including a dog and a man drinking beer

Wisdom to code by, an illustrated guide to programmer proverbs

Behold age-old truths that software developers have learned over the years.

hopscotch

Java 101: The essential Java language features tour, Part 6

Learn by example how lambdas interact with scopes, local variables, the this and super keywords, and exceptions in Java programs.

stack of books
Tip

Free books! 19 no-cost programming guides

Learning a new language? Studying classic concepts? Check out these books that don't cost a dime.

graybeards old programming ancient senior history legacy

7 timeless lessons of programming ‘graybeards’

Heed the wisdom of your programming elders, or suffer the consequences of fundamentally flawed code.

best practice

How just about everyone gets unit testing wrong

Automated unit testing is a great tool to help deliver higher quality software at a lower cost. But most software teams either don't write any unit tests or write too many.

typewriter
Tip

Making a business case for refactoring code

Editing code for readability is an up-front investment that can pay big dividends in the long run.

Literate programming is now a team sport

A program is a story told in two languages: code and prose. On GitHub, countless stories of countless programs are being told every day.

talent agent salesman slick hollywood sunglasses

Attention, rockstar developers: Get a talent agent

High demand, large workloads, and the changing nature of programming work have some developers seeking reps to help them land new gigs.

modular java

Modularity in Java 9: Stacking up with Project Jigsaw, Penrose, and OSGi

Get primed on the shortcomings of traditional modular programming in Java and find out how Project Jigsaw, OSGi, and Penrose could end up working side by side in Java 9.

Invokedynamic 101

What do you need to know about using invokedynamic and the java.lang.invoke API package in Java 7 and Java 8?

code school

We all will be coders: Don't fear the future of software development

Within 10 years all primary school graduates in the UK will know how to code, but there will still be plenty of work for the pros.

holiday lights neurons network stream

Socket programming for scalable systems

Three iterations of a client-server example demonstrate the timeless utility of Java I/O, while also showcasing the streamlined concurrency and scalability features of NIO and NIO.2.

Load More