Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • This code does not compile. Commented Jul 6, 2015 at 12:21
  • @ChetanKinger : This code will not compile as it is. First you have to add a main class in it and then put SomeTest <Integer> mRef = MyClass :: <Integer> myGenMeth; in that main class Commented Jul 6, 2015 at 12:23
  • Please post MVC code sample. As far I know, it won't compile even after we do what you said in the previous comment. Commented Jul 6, 2015 at 12:34
  • @kevingomes, unfortunately the accepted answer from Keppil is probably still not correct in the context of your actual question. While that is one form of method reference, it probably isn't what the book means in that quote. Commented Jul 6, 2015 at 14:39
  • @AndyBrown :please post the correct answer then. Commented Jul 6, 2015 at 19:08