title: How to get a clojure handle on a Java static method, similar to _memfn_ for a Java instance method?
body: <p>To get a handle on a Java instance method which we can invoke later on, we can call the <em>memfn</em> function:</p>
  
  <pre><code>user=&gt; (def g (memfn Integer/toString))
  #'user/g
  
  user=&gt; (g 789)
  "789"
  </code></pre>
  
  <p>This doesn't work for Java static methods:</p>
  
  <pre><code>user=&gt; (def g (memfn Integer/toHexString))
  #'user/g
  
  user=&gt; (g 789)
  IllegalArgumentException No matching method found: toHexString for class java.lang.Long  clojure.lang.Reflector.invokeMatchingMethod (Reflector.java:52)
  
  user=&gt; (g)
  ArityException Wrong number of args (0) passed to: user$g  clojure.lang.AFn.throwArity (AFn.java:437)
  </code></pre>
  
  <p>How can we get a handle to a Java static method, so we can invoke it later on?</p>