Concept
Why is the Utils.methodName() syntax used for methods?
ComputerScienceOne / Passing By Reference
"The Utils.methodName() syntax is used because the methods are static –they belong to the class and so must be invoked through the class using the class’s name. We’ve previously seen this syntax when using System. or Math. with the standard JDK library functions."
Related Ideas
- How do you use methods defined in another Java class?ComputerScienceOne · Using Methods
- How do you use methods defined in another Java class?ComputerScienceOne · Void Methods
- What is a void method in Java?ComputerScienceOne · Void Methods
- How do member methods differ from static methods?ComputerScienceOne · Accessor & Mutator Methods
- How do you use Java instances and invoke their methods?ComputerScienceOne · Usage
- How are Java class instances created and used?ComputerScienceOne · Common Methods
- How can method references and Comparator methods make ordering more concise?ComputerScienceOne · Java 8: Lambda Expressions
- How do functions work in programming languages?ComputerScienceOne · Functions