Al Hobbs wrote:If you really have to put it in the JSP you could use the script tags and put what Simon wrote in there.
Rod Taylor wrote:
1) Can I use the toilet if I need to? If yes, what's the regulation?
2) Can I use scratch pad for calculation? I'm very used to drawing objects, etc for better illustration of the question.
Stephan van Hulst wrote:But seriously, use the command line tools before you use an IDE. You will then form a much greater understanding for what happens behind the scenes when you eventually use an IDE.
Stephan van Hulst wrote:I could have sworn that I've seen them referred to as "method handles" before. I guess I've dreamt it up.
Anyway, my previous explanation still holds, just substitute "method reference" for "method handle".
Rod Taylor wrote: ... how does JVM decide when to create an object or when to look for the same constant on the pool?
Liliane Top wrote:@Stephan I looked up what the meaning is of method handle as opposed to a method call and went down this rabbit hole java.lang.invoke.MethodHandles
Even more confused now.
Serpher Onwave wrote:...
My object is to determine number of days between days.
Paul Clapham wrote:[Both Class.getResource(String) and ClassLoader.getResource(String) have been in the API since Java 1.1.
Stephan van Hulst wrote:
...
Finally, you MUST use a type name when assigning a lambda expression or method handle to a variable: