Performance Impact of Functional Programming in Java