Understanding Function Call in Java: Concepts, Implementation, and Best Practices