title: Can you convert a method to a string in Java in the same way you can convert a function to a string in Javascript?
body: <p>In javascript, if you want to return a function in its entireity, you would execute something like the following:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function sum(a, b) {
    return a + b;
  }
  
  console.log(sum.toString());
  // expected output: "function sum(a, b) {
  //                     return a + b;
  //                   }"
  
  console.log(Math.abs.toString());
  // expected output: "function abs() { [native code] }"</code></pre>
  </div>
  </div>
  </p>
  
  <p>Is this possible in the Java language?</p>