Question: what are different types of functions in java?
Answer: public static − modifier. int − return type. methodName − name of the method. a, b − formal parameters. int a, int b − list of parameters.