Learn Java

Learn Java news, information, and how-to advice

A hand making the OK signal
A man pulling his hair out

fields and methods

Java 101: Classes and objects in Java

Learn how to make classes, fields, methods, constructors, and objects work together in your Java applications.

head scratch

Head-scratchers: 11 confounding programming language features

Programming languages are full of peculiarities but these oddities tend to make developers say “WTF?” more than most

anglers loop

What REPL means for Java

Read-eval-print-loop functionality is coming to Java in 2016. Find out how JShell will change the way that developers learn and write Java code.


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

End your tour of Java's essential language features with Java 8's method references, interface default and static methods, and three lesser known language updates, then preview new features coming in Java 9.

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.


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


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

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.


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.

Load More