You are previewing Clojure in Action.

Clojure in Action

Cover of Clojure in Action by Amit Rathore Published by Manning Publications

Chapter 5. Clojure and Java interop


This chapter covers

  • Introduction to Clojure’s Java Interop functionality
  • Calling Java from Clojure
  • Compiling Clojure down to byte code
  • Calling Clojure from Java


Java is the new COBOL. This pronouncement has been made year after year for a few years now, but hasn’t quite come to pass. Java was originally designed in the early nineties, was officially released in the mid-nineties, and went on to become one of the most significant technologies of its time. Today, the Java stack is probably 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 ...

The best content for your career. Discover unlimited learning on demand for around $1/day.