Comparing Java Methods and Functions: Understanding the Key Differences