Wrapping Up

In this chapter we covered calling Java code from your Clojure program. We looked at the mechanics of creating new Java objects, at calling methods, and even at how you can use Clojure to look into the Java code behind Clojure itself.

One aspect of Java interop that we didn’t look at in this chapter was using Java threads from Clojure. Because that’s what the next chapter is about.

Get Getting Clojure 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.