Chapter 5. Exploring Clojure and Java interop

This chapter covers

  • Introducing Clojure’s Java interop functionality
  • Calling Java from Clojure
  • Compiling Clojure down to bytecode
  • Calling Clojure from Java

Java is the new COBOL. This pronouncement has been made year after year for a few years now, but it hasn’t quite come to pass. Java was originally designed in the early 1990s, was officially released in the mid-1990s, and went on to become one of the most significant technologies of its time. Today, the Java stack is one of the most popular in the industry. It isn’t going away anytime soon.

With the sheer amount of Java code in production (and more being written every day), no modern programming language can hope to succeed without being ...

Get Clojure in Action, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.